Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public static void Post(this AsyncFifoWorker worker, Task work, string description, CancellationToken cancellationToken)
 {
     worker.Post((Func <Task>)(() => work), description, cancellationToken);
 }