toTask method

Task<A> toTask()

Lift this IO to a Task.

Return a Future<A> (Task) instead of a R (IO).

Implementation

Task<A> toTask() => Task<A>(() async => run());