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

Method constructor

packages/effect/src/internal/fiberRuntime.ts:320–335  ·  view source on GitHub ↗
(
    fiberId: FiberId.Runtime,
    fiberRefs0: FiberRefs.FiberRefs,
    runtimeFlags0: RuntimeFlags.RuntimeFlags
  )

Source from the content-addressed store, hash-verified

318 public currentDefaultServices!: Context.Context<DefaultServices>
319
320 constructor(
321 fiberId: FiberId.Runtime,
322 fiberRefs0: FiberRefs.FiberRefs,
323 runtimeFlags0: RuntimeFlags.RuntimeFlags
324 ) {
325 super()
326 this.currentRuntimeFlags = runtimeFlags0
327 this._fiberId = fiberId
328 this._fiberRefs = fiberRefs0
329 if (runtimeFlags_.runtimeMetrics(runtimeFlags0)) {
330 const tags = this.getFiberRef(core.currentMetricLabels)
331 fiberStarted.unsafeUpdate(1, tags)
332 fiberActive.unsafeUpdate(1, tags)
333 }
334 this.refreshRefCache()
335 }
336
337 commit(): Effect.Effect<A, E, never> {
338 return internalFiber.join(this)

Callers

nothing calls this directly

Calls 3

getFiberRefMethod · 0.95
refreshRefCacheMethod · 0.95
unsafeUpdateMethod · 0.80

Tested by

no test coverage detected