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

Function doConcurrentAsyncMixedOps

test/parallel/test-fs-opendir.js:285–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

283
284// Check that concurrent read() + close() operations don't do weird things.
285async function doConcurrentAsyncMixedOps() {
286 const dir = await fs.promises.opendir(testDir);
287 const promise1 = dir.read();
288 const promise2 = dir.close();
289
290 assertDirent(await promise1);
291 await promise2;
292}
293doConcurrentAsyncMixedOps().then(common.mustCall());
294
295// Check if directory already closed - the callback should pass an error.

Callers 1

test-fs-opendir.jsFile · 0.85

Calls 4

assertDirentFunction · 0.85
opendirMethod · 0.80
closeMethod · 0.65
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…