toFuture

Retrieves the future view on this observer result.

The future is completed when:

  1. the element of the unary stream arrives via onNext;
  2. the stream is completed with no data;
  3. the stream is completed with an error; in this case, the future is obtruded with the error from the stream.

Return

the future view on this observer