ok method

Future<Option<T>> ok()

Converts the Result into an Option containing the value, if any. Otherwise returns None if the result is an error.

Implementation

Future<Option<T>> ok() => then((result) => result.ok());