public bool Next(out EventActionNode actionNode) { if (Interlocked.CompareExchange( ref this.currentRunningState, RUNNING, IDLE) == IDLE) { return(this.eventQueue.Next(out actionNode)); } actionNode = null; return(false); }
public bool Skip(EventActionNode node) { return(this.eventQueue.AddDefer(node)); }