Hyperlinkv0.8.0-beta.28

Take

Take.toPullconsteffect/Take.ts:43
<A, E, Done>(take: Take<A, E, Done>): Pull.Pull<
  NonEmptyReadonlyArray<A>,
  E,
  Done
>

Converts a Take into a Pull, succeeding with value batches, failing with failure exits, and translating successful exits into pull completion.

When to use

Use to interpret a stored or transferred Take as a Pull step while preserving emitted batches, ordinary failures, and completion values.

converting
Source effect/Take.ts:434 lines
export const toPull = <A, E, Done>(take: Take<A, E, Done>): Pull.Pull<NonEmptyReadonlyArray<A>, E, Done> =>
  Exit.isExit(take)
    ? Exit.isSuccess(take) ? Cause.done(take.value) : (take as Exit.Exit<never, E>)
    : Effect.succeed(take)
Referenced by 2 symbols