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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
A |
E |
R |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
effect |
Effect<A, E, R> |
Returns
Section titled “Returns”Effect<A, E, Exclude<R, Scope>>