public virtual void Close()
 {
     if (!_closed.Get())
     {
         _closed.Set(true);
         _dispatcher.Close();
     }
 }
Example #2
0
 public void Close()
 {
     while (_queue.TryDequeue(out _))
     {
         // do nothing
     }
     _dispatcher.Close();
 }
 public void Close()
 {
     // queue.Clear();
     dispatcher.Close();
 }
 public void Close()
 {
     dispatcher.Close();
     queue.CompleteAdding();
     Dispose(true);
 }
 public override void Close() => executorDispatcher.Close();