Provide mapping methods for multiple_result's Result<T, E>
with asynchronous support/handling, and error (of type E) capture.
Just add multiple_result_async as dependency. This package does not replace multiple_result.
final result = Future((){...}).toResultOrError<Exception>();return getDataResult().next(
onSuccess: (T success) {
...
return Success(processed_value);
},
onError: (E error) async {
...
if (is_recoverable_error){
...
return Success(recupered_error);
}
...
return Error(propagated_error);
},
);multiple_result_async is available under the MIT license. See the LICENSE file for more info.