FutureExtensions<T> extension
Extensions for Future operations and utilities.
- on
-
- Future<
T>
- Future<
Methods
-
orElse(
T fallback) → Future< T> -
Available on Future<
Completes withT> , provided by the FutureExtensions extensionfallbackif this future throws. -
orElseGet(
T fallback(Object error)) → Future< T> -
Available on Future<
Completes with the result ofT> , provided by the FutureExtensions extensionfallbackif this future throws. -
orNull(
) → Future< T?> -
Available on Future<
Returns the result, orT> , provided by the FutureExtensions extensionnullif this future throws. -
thenDelay(
Duration duration) → Future< T> -
Available on Future<
Waits for this future, then delays forT> , provided by the FutureExtensions extensiondurationbefore returning.