/** * Creates effect from `Pull` that does not fail, but succeeds with the * `Take`. Any error returned from stream when pulling is converted to * `Take.failCause`, and the end of stream to `Take.end`. * * @tsplus static effect/core/stream/Take.Ops fromPull */ export function fromPull(pull: Pull): Effect> { return pull.foldCause( (cause) => Cause.flipCauseMaybe(cause).fold(() => Take.end, Take.failCause), Take.chunk ) }