예제 #1
0
파일: TaskEx.cs 프로젝트: armku/LearnPipe
 /// <summary></summary>
 /// <typeparam name="TResult"></typeparam>
 /// <param name="function"></param>
 /// <param name="cancellationToken"></param>
 /// <returns></returns>
 public static Task <TResult> Run <TResult>(Func <Task <TResult> > function, CancellationToken cancellationToken) => TaskExtensions.Unwrap(Run <Task <TResult> >(function, cancellationToken));
예제 #2
0
 public static Task <TResult> Run <TResult>(Func <Task <TResult> > function, CancellationToken cancellationToken)
 {
     return(TaskExtensions.Unwrap <TResult>(TaskEx.Run <Task <TResult> >(function, cancellationToken)));
 }
예제 #3
0
파일: TaskEx.cs 프로젝트: armku/LearnPipe
 /// <summary></summary>
 /// <param name="function"></param>
 /// <param name="cancellationToken"></param>
 /// <returns></returns>
 public static Task Run(Func <Task> function, CancellationToken cancellationToken) => TaskExtensions.Unwrap(Run <Task>(function, cancellationToken));
예제 #4
0
 public static Task Run(Func <Task> function, CancellationToken cancellationToken)
 {
     return(TaskExtensions.Unwrap(TaskEx.Run <Task>(function, cancellationToken)));
 }