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

Function drain

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

Source from the content-addressed store, hash-verified

3326 * @since 2.0.0
3327 */
3328export const drain = <
3329 OutElem,
3330 OutErr,
3331 OutDone,
3332 InElem,
3333 InErr,
3334 InDone,
3335 Env
3336>(
3337 self: Channel<
3338 OutElem,
3339 OutErr,
3340 OutDone,
3341 InElem,
3342 InErr,
3343 InDone,
3344 Env
3345 >
3346): Channel<never, OutErr, OutDone, InElem, InErr, InDone, Env> =>
3347 transformPull(self, (pull) => Effect.succeed(Effect.forever(pull, { disableYield: true })))
3348
3349/**
3350 * Repeats this channel according to the provided schedule.

Callers

nothing calls this directly

Calls 2

transformPullFunction · 0.70
succeedMethod · 0.45

Tested by

no test coverage detected