FutureExtension<T> extension

on

Properties

genericType Type

Available on Future<T>, provided by the FutureExtension extension

Returns the type of T.
no setter

Methods

resolveBoth<R>(FutureOr<T> other, FutureOr<R> resolver(T val1, T val2)) Future<R>

Available on Future<T>, provided by the FutureExtension extension

Resolves this Future and other with resolver.
whenResolved<R>(FutureOr<R> onResolve(T? value, Object? error, StackTrace? stackTrace)) Future<R>

Available on Future<T>, provided by the FutureExtension extension

Invokes a callback when this Future resolves, either with a value or with an error, and maps the outcome to a new result.