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

Method getRef

packages/effect/src/Micro.ts:481–483  ·  view source on GitHub ↗
(ref: Context.Reference<I, A>)

Source from the content-addressed store, hash-verified

479 }
480
481 getRef<I, A>(ref: Context.Reference<I, A>): A {
482 return InternalContext.unsafeGetReference(this.context, ref)
483 }
484
485 addObserver(cb: (exit: MicroExit<A, E>) => void): () => void {
486 if (this._exit) {

Callers 7

runLoopMethod · 0.95
evalFunction · 0.80
Micro.tsFile · 0.80
shouldYieldMethod · 0.80
forEachFunction · 0.80
unsafeForkFunction · 0.80
goFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected