예제 #1
0
 public IChain Link(IRunnable runnable, int priority)
 {
     if (runnable is PriorityRunnable)
     {
         Queue.TryEnqueue((PriorityRunnable)runnable);
     }
     else
     {
         Queue.TryEnqueue(new PriorityRunnable(runnable, priority));
     }
     return(this);
 }
예제 #2
0
파일: Chain.cs 프로젝트: sekeys/Phyah
 public IChain Link(IRunnable runnable)
 {
     Queue.TryEnqueue(runnable);
     return(this);
 }