MCPcopy Index your code
hub / github.com/anomalyco/opencode / tmpdirEffect

Function tmpdirEffect

packages/opencode/test/server/httpapi-config.test.ts:21–25  ·  view source on GitHub ↗
(options: Parameters<typeof tmpdir>[0])

Source from the content-addressed store, hash-verified

19}
20
21const tmpdirEffect = (options: Parameters<typeof tmpdir>[0]) =>
22 Effect.acquireRelease(
23 Effect.promise(() => tmpdir(options)),
24 (tmp) => Effect.promise(() => tmp[Symbol.asyncDispose]()),
25 )
26
27afterEach(async () => {
28 await disposeAllInstances()

Callers 1

Calls 1

tmpdirFunction · 0.90

Tested by

no test coverage detected