fromTask<C, L, R> function

ReaderTaskEither<C, L, R> fromTask<C, L, R>(
  1. Task<R> task
)

Transforms a Task into a ReaderTaskEither, wrapping the result in an Right.

Implementation

ReaderTaskEither<C, L, R> fromTask<C, L, R>(Task<R> task) =>
    ReaderTaskEither((r) => TE.fromTask(task));