AdvancedAsyncResultExtension<S> extension

Extension on Future<Result<S>> to enable fluent, asynchronous functional chaining.

This prevents nested code structures (callback hell) when combining multiple asynchronous operations that return a Result.

on

Methods

asyncFlatMap<T>(FutureOr<Result<T>> transform(S value)) Future<Result<T>>

Available on Future<Result<S>>, provided by the AdvancedAsyncResultExtension extension

Chains another operation that returns a FutureOr<Result> sequentially.
asyncMap<T>(FutureOr<T> transform(S value)) Future<Result<T>>

Available on Future<Result<S>>, provided by the AdvancedAsyncResultExtension extension

Transforms the successful value inside the Result asynchronously.