public static TryAsync <A> TryAsync <A>(Func <A> f) =>
 TryAsyncExtensions.Memo <A>(() =>
                             Task.Run(() => new Result <A>(f())));
Exemple #2
0
 public static TryAsync <A> TryAsync <A>(Task <A> v) =>
 TryAsyncExtensions.Memo <A>(new LanguageExt.TryAsync <A>(async() => new Result <A>(await v)));
 public static TryAsync <A> TryAsync <A>(Task <A> v) =>
 TryAsyncExtensions.Memo <A>(new LanguageExt.TryAsync <A>(async() => new Result <A>(await v.ConfigureAwait(false))));
Exemple #4
0
 public static TryAsync <A> TryAsync <A>(Func <Task <A> > f) =>
 TryAsyncExtensions.Memo <A>(new LanguageExt.TryAsync <A>(async() => new Result <A>(await f())));