Beispiel #1
0
 public static IAsyncMaybe<T> ToAsyncMaybe<T, TError>(this IAsyncResult<T, TError> source) {
     if (source is null) throw new ArgumentNullException(nameof(source));
     return new AsyncMaybe<T>(source.MapError(_ => Unit.Default));
 }