effect-io-ai

Package: effect
Module: Channel

Channel.unwrapScopedWith

Constructs a Channel from a function which receives a Scope and returns an effect that will result in a Channel if successful.

Signature

declare const unwrapScopedWith: <OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, E, R>(f: (scope: Scope.Scope) => Effect.Effect<Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, E, R>) => Channel<OutElem, InElem, E | OutErr, InErr, OutDone, InDone, R | Env>

Source

Since v3.11.0