MCPcopy Create free account
hub / github.com/Noumena-Network/code / onAbort

Function onAbort

src/utils/hooks.ts:4779–4779  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4777 const passed = await new Promise<boolean>((resolve, reject) => {
4778 // Handle abort signal
4779 const onAbort = () => reject(new Error('Function hook cancelled'))
4780 abortSignal.addEventListener('abort', onAbort)
4781
4782 // Execute callback

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected