FutureExtensions<T> extension
Convenience methods on futures.
Adds functionality to futures which makes it easier to write well-typed asynchronous code.
- on
-
- Future<
T>
- Future<
- @Since("2.12")
Methods
-
ignore(
) → void -
Available on Future<
Completely ignores this future and its result.T> , provided by the FutureExtensions extension -
onError<
E extends Object> (FutureOr< T> handleError(E error, StackTrace stackTrace), {bool test(E error)?}) → Future<T> -
Available on Future<
Handles errors on this future.T> , provided by the FutureExtensions extension