OptionLoginAsyncExtension<T extends Object> extension
Async method like and, or, xor
Methods
-
andThenAsync<
U extends Object> (FutureOr< Option< op(T)) → Future<U> >Option< U> > -
Returns
None
if the option isNone
, otherwise asynchronously callsop
with the wrapped value and returns the result. -
orElseAsync(
FutureOr< Option< op()) → Future<T> >Option< T> > -
Returns the option if it contains a value, otherwise asynchronously calls
op
and returns the result.