MCPcopy
hub / github.com/Effect-TS/effect / unsafeMake

Function unsafeMake

packages/effect/src/internal/fiberId.ts:263–267  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261
262/** @internal */
263export const unsafeMake = (): FiberId.Runtime => {
264 const id = MutableRef.get(_fiberCounter)
265 pipe(_fiberCounter, MutableRef.set(id + 1))
266 return new Runtime(id, Date.now())
267}

Callers

nothing calls this directly

Calls 4

pipeFunction · 0.70
getMethod · 0.65
setMethod · 0.65
nowMethod · 0.45

Tested by

no test coverage detected