MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / detach

Function detach

apps/cloud/src/analytics/ema-rollout.ts:91–100  ·  view source on GitHub ↗
(
  work: Promise<unknown>,
  waitUntil: ((work: Promise<unknown>) => void) | undefined,
)

Source from the content-addressed store, hash-verified

89 * structurally unable to fail or delay a connect.
90 */
91const detach = (
92 work: Promise<unknown>,
93 waitUntil: ((work: Promise<unknown>) => void) | undefined,
94): void => {
95 const settled = work.then(
96 () => undefined,
97 () => undefined,
98 );
99 if (waitUntil) waitUntil(settled);
100};
101
102// ---------------------------------------------------------------------------
103// The gate

Callers 1

Calls 1

waitUntilFunction · 0.85

Tested by

no test coverage detected