OptionLoginAsyncExtension<T extends Object> extension

Async method like and, or, xor

on

Methods

andThenAsync<U extends Object>(FutureOr<Option<U>> op(T)) Future<Option<U>>
Returns None if the option is None, otherwise asynchronously calls op with the wrapped value and returns the result.
orElseAsync(FutureOr<Option<T>> op()) Future<Option<T>>
Returns the option if it contains a value, otherwise asynchronously calls op and returns the result.