release<T> static method

Future<T> release<T>(
  1. Future<Result<T>> future
)

Releases the result of a captured future.

Converts the Result value of the given future to a value or error completion of the returned future.

If future completes with an error, the returned future completes with the same error.

Implementation

static Future<T> release<T>(Future<Result<T>> future) =>
    future.then<T>((result) => result.asFuture);