public bool WaitForWorkItems(double timeout = 0) { if (_IsDisposed) { throw new ObjectDisposedException("TaskScheduler"); } return(_JobQueue.WaitForWorkItems(timeout)); }