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

Function mergeRunOptions

packages/effect/src/ManagedRuntime.ts:297–308  ·  view source on GitHub ↗
(options?: O)

Source from the content-addressed store, hash-verified

295 onFiberStart: Fiber.runIn(scope)
296 }
297 const mergeRunOptions = <O extends Effect.RunOptions>(options?: O): O =>
298 options
299 ? {
300 ...options,
301 onFiberStart: options.onFiberStart ?
302 (fiber) => {
303 defaultRunOptions.onFiberStart!(fiber)
304 options.onFiberStart!(fiber)
305 } :
306 defaultRunOptions.onFiberStart
307 }
308 : defaultRunOptions as O
309 let buildFiber: Fiber.Fiber<Context.Context<R>, ER> | undefined
310 const contextEffect = Effect.withFiber<Context.Context<R>, ER>((fiber) => {
311 if (!buildFiber) {

Callers 4

runForkFunction · 0.85
runCallbackFunction · 0.85
runPromiseExitFunction · 0.85
runPromiseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected