MCPcopy Create free account
hub / github.com/Effect-TS/effect / forever

Function forever

packages/effect/src/Channel.ts:3430–3433  ·  view source on GitHub ↗
(
  self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>
)

Source from the content-addressed store, hash-verified

3428 * @since 4.0.0
3429 */
3430export const forever = <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(
3431 self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>
3432): Channel<OutElem, OutErr, never, InElem, InErr, InDone, Env> =>
3433 repeatLoop(self, (exit) => Exit.isFailure(exit) ? Effect.failCause(exit.cause) : Effect.void)
3434
3435/**
3436 * Runs a schedule step for each output element while preserving the emitted

Callers

nothing calls this directly

Calls 1

repeatLoopFunction · 0.85

Tested by

no test coverage detected