public static Task TrackOnDispatcher(this Task task, AwaitableTaskDispatcher dispatcherOrNull)
 {
     return(dispatcherOrNull?.TrackTask(task) ?? task);
 }
 public Task Active()
 {
     return(AwaitableTaskDispatcher.NotIdle(_dispatchers));
 }
 public Task Idle()
 {
     return(AwaitableTaskDispatcher.Idle(_dispatchers));
 }
Пример #4
0
 public override MessageDispatcher Dispatcher()
 {
     return(_instance = _instance ?? new AwaitableTaskDispatcher(this));
 }