/// <summary> /// Disposes of the Slot. Disposing removes the Slot from its Signal, and then /// nulls out and cleans up its values to be pooled and reused. /// </summary> public void Dispose() { if (!signal) { return; } if (signal.Get(listener)) { signal.Remove(listener); } else { signal = null; listener = null; priority = 0; isOnce = false; } }
public SubscriberInfo(Action callback, SignalBase parent) : base(callback, parent) { }
protected SubscriberInfoBase(Delegate action, SignalBase parentSignal) { this.parentSignal = parentSignal; this.action = action; }