Пример #1
0
 public static Attempt <TResult> ResultOf <TResult>(Func <TResult> func)
 {
     return(Attempt <TResult> .ResultOf(func));
 }
Пример #2
0
 public static async Task <Attempt <TResult> > ResultAsync <TResult>(Task <TResult> task)
 {
     return(await Attempt <TResult> .ResultAsync(task));
 }