跳到內容

scoped

本頁內容尚未翻譯。

function scoped<A, E, R>(
effect: Effect<A, E, R>,
): Effect<A, E, Exclude<R, Scope>>

Defined in: Release.ts:68

Runs an effect in its own scope and closes it with close. Body and release failures are combined; a failed release never hides the body cause.

Type Parameter
A
E
R
Parameter Type
effect Effect<A, E, R>

Effect<A, E, Exclude<R, Scope>>