3 ms·
Everything is asynchronous but the linked article uses the synchronous versions of the functions for some reason... async versions exist and are recommended[1]
by sotojuan 11y ago
Everything is asynchronous but the linked article uses the synchronous versions of the functions for some reason... async versions exist and are recommended[1]
[1] https://github.com/ncb000gt/node.bcrypt.js#async-recommended https://github.com/ncb000gt/node.bcrypt.js#async-recommended
- zwily 11y agoDo the async methods actually execute on a thread pool though? Or do they use enough async methods internally to periodically release the main thread enough to keep it responsive? From a quick glance at the source, the answer to the first is no.