effect-io-ai

Package: effect
Module: Channel

Channel.scoped

Runs a channel with a scope provided for the duration of the channel execution, removing the channel’s Scope requirement.

Signature

declare const scoped: <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Exclude<Env, Scope.Scope>>

Source

Since v2.0.0