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

File RcMap.ts

packages/effect/src/RcMap.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/**
2 * Shares scoped resources by key and releases them when no one is using them.
3 *
4 * An `RcMap` runs a lookup effect the first time a key is requested, shares the

Callers

nothing calls this directly

Calls 15

addObserverMethod · 0.80
getUnsafeMethod · 0.80
addFinalizerMethod · 0.80
releaseFunction · 0.70
getMethod · 0.65
sizeMethod · 0.65
setMethod · 0.65
forEachMethod · 0.65
pipeMethod · 0.65
awaitMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected