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

Function newDistributedWithDynamicId

packages/effect/src/internal/stream.ts:2029–2033  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2027const distributedWithDynamicId = { ref: 0 }
2028
2029const newDistributedWithDynamicId = () => {
2030 const current = distributedWithDynamicId.ref
2031 distributedWithDynamicId.ref = current + 1
2032 return current
2033}
2034
2035/** @internal */
2036export const distributedWithDynamic = dual<

Callers 2

stream.tsFile · 0.85
finalizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected