Relative Content

Tag Archive for javascriptnode.jsasync-awaitpromise

Does this specific pattern synchronize code in JavaScript? [duplicate]

“The promise APIs use the underlying Node.js threadpool to perform file system operations off the event loop thread. These operations are not synchronized or threadsafe. Care must be taken when performing multiple concurrent modifications on the same file or data corruption may occur.”