示例#1
0
 public static Task <Result <E> > OnSuccessAsync <E>(this Result <E> result, Func <Task <Result <E> > > onsuccess)
 {
     return(ResultCoreAsyncExtensions.BindAsync(result, onsuccess));
 }
示例#2
0
 public static Task <O> ReturnAsync <T, E, O>(this Task <Result <T, E> > result, Func <T, O> onsuccess, Func <E, O> onfailure)
 {
     return(ResultCoreAsyncExtensions.MatchAsync(result, onsuccess, onfailure));
 }