replace method

ObservableFuture<T> replace(
  1. Future<T> nextFuture
)

Returns a new future that starts with the status and result of this.

The status and result changes when the provided future completes. Useful when you don't want to clear the result of the previous operation while executing the new operation.

Implementation

ObservableFuture<T> replace(Future<T> nextFuture) =>
    ObservableFuture<T>._(_context, nextFuture, status, result, name);