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

Function acquire

packages/effect/test/Scope.test.ts:31–31  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

29}
30
31const acquire = (id: number): Action => ({ op: OP_ACQUIRE, id })
32const use = (id: number): Action => ({ op: OP_USE, id })
33const release = (id: number): Action => ({ op: OP_RELEASE, id })
34const isAcquire = (self: Action): self is Use => self.op === OP_ACQUIRE

Callers 3

resourceFunction · 0.70
Scope.test.tsFile · 0.70
ResourceRefClass · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…