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
future
- the future to react to
Return
the new Maybe instance