MCPcopy Index your code
hub / github.com/Effect-TS/effect / scopeUnsafeMake

Function scopeUnsafeMake

packages/effect/src/internal/fiberRuntime.ts:3306–3313  ·  view source on GitHub ↗
(
  strategy: ExecutionStrategy.ExecutionStrategy = executionStrategy.sequential
)

Source from the content-addressed store, hash-verified

3304}
3305
3306const scopeUnsafeMake = (
3307 strategy: ExecutionStrategy.ExecutionStrategy = executionStrategy.sequential
3308): ScopeImpl => {
3309 const scope = Object.create(ScopeImplProto)
3310 scope.strategy = strategy
3311 scope.state = { _tag: "Open", finalizers: new Map() }
3312 return scope
3313}
3314
3315/* @internal */
3316export const scopeMake = (

Callers 2

forkFunction · 0.70
scopeMakeFunction · 0.70

Calls 1

createMethod · 0.80

Tested by

no test coverage detected