maybeFromFunction

fun <T> maybeFromFunction(func: () -> T): Maybe<T>

Returns a Maybe that emits the value returned by the func shared function.

Please refer to the corresponding RxJava document.