MCPcopy Index your code
hub / github.com/nodejs/node / performFileOperation

Function performFileOperation

test/common/watch.js:50–60  ·  view source on GitHub ↗
(operation, useRunApi, timeout = 1000)

Source from the content-addressed store, hash-verified

48}
49
50async function performFileOperation(operation, useRunApi, timeout = 1000) {
51 if (useRunApi) {
52 const interval = setInterval(() => {
53 operation();
54 clearInterval(interval);
55 }, common.platformTimeout(timeout));
56 } else {
57 operation();
58 await setTimeout(common.platformTimeout(timeout));
59 }
60}
61
62function assertTestOutput(run, shouldCheckRecursion = false) {
63 if (shouldCheckRecursion) {

Callers 3

testUpdateFunction · 0.85
testRenameFunction · 0.85
testCreateFunction · 0.85

Calls 3

clearIntervalFunction · 0.85
setIntervalFunction · 0.50
setTimeoutFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…