MCPcopy
hub / github.com/sindresorhus/execa / throwOnDisconnect

Function throwOnDisconnect

lib/ipc/get-one.js:61–64  ·  view source on GitHub ↗
(ipcEmitter, isSubprocess, {signal})

Source from the content-addressed store, hash-verified

59};
60
61const throwOnDisconnect = async (ipcEmitter, isSubprocess, {signal}) => {
62 await once(ipcEmitter, 'disconnect', {signal});
63 throwOnEarlyDisconnect(isSubprocess);
64};
65
66const throwOnStrictError = async (ipcEmitter, isSubprocess, {signal}) => {
67 const [error] = await once(ipcEmitter, 'strict:error', {signal});

Callers 1

getOneMessageAsyncFunction · 0.70

Calls 1

throwOnEarlyDisconnectFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…