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

Function isConnected

lib/ipc/forward.js:51–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50// Check whether there might still be some `message` events to receive
51export const isConnected = anyProcess => {
52 const ipcEmitter = IPC_EMITTERS.get(anyProcess);
53 return ipcEmitter === undefined
54 ? anyProcess.channel !== null
55 : ipcEmitter.connected;
56};

Callers 2

loopOnMessagesFunction · 0.90
getOneMessageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…