(events: Array<string>)
| 5 | class Value extends Context.Tag("LayerMap.test.Value")<Value, string>() {} |
| 6 | |
| 7 | const trackedLayer = (events: Array<string>) => |
| 8 | Layer.scoped( |
| 9 | Value, |
| 10 | Effect.acquireRelease( |
| 11 | Effect.sync(() => { |
| 12 | events.push("acquire") |
| 13 | return "value" |
| 14 | }), |
| 15 | () => |
| 16 | Effect.sync(() => { |
| 17 | events.push("release") |
| 18 | }) |
| 19 | ) |
| 20 | ) |
| 21 | |
| 22 | const constructors = { |
| 23 | make: (layer: Layer.Layer<Value, Error>, idleTimeToLive?: number) => |