public IChain Link(IRunnable runnable, int priority) { if (runnable is PriorityRunnable) { Queue.TryEnqueue((PriorityRunnable)runnable); } else { Queue.TryEnqueue(new PriorityRunnable(runnable, priority)); } return(this); }
public IChain Link(IRunnable runnable) { Queue.TryEnqueue(runnable); return(this); }