MCPcopy Index your code
hub / github.com/sindresorhus/fkill-cli / delay

Function delay

interactive.js:20–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18const PROCESS_EXITED_MAX_INTERVAL = 1280;
19
20const delay = ms => new Promise(resolve => {
21 setTimeout(resolve, ms);
22});
23
24const processExited = async (pid, timeout) => {
25 const endTime = Date.now() + timeout;

Callers 2

processExitedFunction · 0.85
noopProcessKilledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected