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.”
Calling .then within a new Promise() javascript
I’ve learned javascript async/await before learning promise.then() syntax, and I am now attempting to go back and learn promise.then().
Turn not awaited unhandled erroneous promise into warning @ processTicksAndRejections (created by throw error in “then”)
there is no await on top-level allowed and my expectation was that the error thrown below would be logged as warning only but it turns out to be a blocker for completion, i.e. upon statement await fsProm.stat
the processing basically stops. I would not understand why?