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

Function executeOnHandle

test/parallel/test-fs-promises.js:107–117  ·  view source on GitHub ↗
(dest, func)

Source from the content-addressed store, hash-verified

105}
106
107async function executeOnHandle(dest, func) {
108 let handle;
109 try {
110 handle = await getHandle(dest);
111 await func(handle);
112 } finally {
113 if (handle) {
114 await handle.close();
115 }
116 }
117}
118
119{
120 async function doTest() {

Callers 1

doTestFunction · 0.85

Calls 3

getHandleFunction · 0.85
funcFunction · 0.70
closeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…