コード例 #1
0
 public static void Post(this AsyncFifoWorker worker, Action action, string description, CancellationToken cancellationToken)
 {
     worker.Post((Func <Task>)(() =>
     {
         action();
         return(TplTaskExtensions.CompletedTask);
     }), description, cancellationToken);
 }
コード例 #2
0
 public static void Post(this AsyncFifoWorker worker, Task work, string description, CancellationToken cancellationToken)
 {
     worker.Post((Func <Task>)(() => work), description, cancellationToken);
 }