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

Method getRef

packages/effect/src/internal/effect.ts:557–559  ·  view source on GitHub ↗
(ref: Context.Reference<X>)

Source from the content-addressed store, hash-verified

555 }
556
557 getRef<X>(ref: Context.Reference<X>): X {
558 return Context.get(this.context, ref)
559 }
560 addObserver(cb: (exit: Exit.Exit<A, E>) => void): () => void {
561 if (this._exit) {
562 cb(this._exit)

Callers 15

setContextMethod · 0.95
makeBatchFunction · 0.80
runFunction · 0.80
runValuesFunction · 0.80
runRawMethod · 0.80
insertQueryFunction · 0.80
runFunction · 0.80
reportUnhandledErrorFunction · 0.80
reportUnhandledErrorFunction · 0.80
NodeHttpClient.tsFile · 0.80
arrayBufferFunction · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected