toOption

open fun toOption(orElse: (R) -> Option<@UnsafeVariance A>): Option<A>(source)

fold the EagerEffect into an Option. Where the shifted value R is mapped to Option by the provided function orElse, and result value A is mapped to Some.