MCPcopy Create free account
hub / github.com/Effect-TS/effect / scopeUnsafeMake

Function scopeUnsafeMake

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

Source from the content-addressed store, hash-verified

3314}
3315
3316const scopeUnsafeMake = (
3317 strategy: ExecutionStrategy.ExecutionStrategy = executionStrategy.sequential
3318): ScopeImpl => {
3319 const scope = Object.create(ScopeImplProto)
3320 scope.strategy = strategy
3321 scope.state = { _tag: "Open", finalizers: new Map() }
3322 return scope
3323}
3324
3325/* @internal */
3326export const scopeMake = (

Callers 2

forkFunction · 0.70
scopeMakeFunction · 0.70

Calls 1

createMethod · 0.80

Tested by

no test coverage detected