fromTask<A> function

TaskOption<A> fromTask<A>(
  1. Task<A> task
)

Wraps the value from a Task in a Some.

Implementation

TaskOption<A> fromTask<A>(Task<A> task) =>
    TaskOption(task.chain(T.map(O.some)));