Skip to main content Link Menu Expand (external link) Document Search Copy Copied

TaskEither overview

Added in v0.0.1

Helpers for TaskEithers


Table of contents


toThrowingTask

Signature

export function toThrowingTask<E, A>(
  taskEither: TE.TaskEither<E, A>,
): T.Task<A> { ... }

Added in v0.0.1 Converts a TaskEither to a Task. If the TaskEither is a left, this task will throw the left value.