aries / net.globalid.aries.utils / toMaybe

toMaybe

inline fun <T> toMaybe(crossinline future: () -> CompletableFuture<T>): Maybe<T>

Returns a Maybe instance future will be executed on back-thread and when subscriber subscribes to rx flow

Parameters

future - the future to react to

Return
the new Maybe instance