FutureExtensions<T> extension Null safety

Convenience methods on futures.

Adds functionality to futures which makes it easier to write well-typed asynchronous code.

on
Annotations
  • @Since("2.12")

Methods

ignore() → void
Completely ignores this future and its result.
@Since("2.14")
onError<E extends Object>(FutureOr<T> handleError(E error, StackTrace stackTrace), {bool test(E error)?}) Future<T>
Handles errors on this future.