MCPcopy Create free account
hub / github.com/effect-app/libs / mergeRunOptions

Function mergeRunOptions

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

Source from the content-addressed store, hash-verified

283 * @since 2.0.0
284 */
285export const make = <R, ER>(
286 layer: Layer.Layer<R, ER, never>,
287 options?: {
288 readonly memoMap?: Layer.MemoMap | undefined
289 } | undefined
290): ManagedRuntime<R, ER> => {
291 const memoMap = options?.memoMap ?? Layer.makeMemoMapUnsafe()
292 const scope = Scope.makeUnsafe("parallel")
293 const layerScope = Scope.forkUnsafe(scope, "sequential")
294 const defaultRunOptions: Effect.RunOptions = {
295 onFiberStart: Fiber.runIn(scope)
296 }
297 const mergeRunOptions = <O extends Effect.RunOptions>(options?: O): O =>
298 options
299 ? {

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…