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

Function waitDisposed

packages/opencode/test/server/httpapi-config.test.ts:14–19  ·  view source on GitHub ↗
(directory: string)

Source from the content-addressed store, hash-verified

12}
13
14function waitDisposed(directory: string) {
15 return waitGlobalBusEvent({
16 message: "timed out waiting for instance disposal",
17 predicate: (event) => event.payload.type === "server.instance.disposed" && event.directory === directory,
18 })
19}
20
21const tmpdirEffect = (options: Parameters<typeof tmpdir>[0]) =>
22 Effect.acquireRelease(

Callers 1

Calls 1

waitGlobalBusEventFunction · 0.90

Tested by

no test coverage detected