MCPcopy Index your code
hub / github.com/cloudconvert/cloudconvert-cli / createSignalEmitter

Function createSignalEmitter

test/job.test.ts:590–604  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

588}
589
590function createSignalEmitter(): {
591 once: ReturnType<typeof vi.fn<(signal: 'SIGINT', listener: () => void) => void>>;
592 off: ReturnType<typeof vi.fn<(signal: 'SIGINT', listener: () => void) => void>>;
593 emitSigint: () => void;
594} {
595 let sigintListener: (() => void) | undefined;
596
597 return {
598 once: vi.fn((signal: 'SIGINT', listener: () => void) => {
599 sigintListener = listener;
600 }),
601 off: vi.fn(),
602 emitSigint: () => sigintListener?.()
603 };
604}

Callers 1

job.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected