Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#348·dataloader

Ever considered the use of `queueMicrotask`?

Author: andreyvitalCreated Aug 17, 2023Updated Dec 18, 2023
Labelshelp wanted

It's available as of v11—isn't it better than process.nextTick? https://nodejs.org/api/globals.html#queuemicrotaskcallback

https://github.com/graphql/dataloader/blob/d336bd15282664e0be4b4a657cb796f09bafbc6b/src/index.js#L239-L255

Just a question...

Thanks, A.

Source: graphql/dataloader

View original on GitHubView discussion on GitHub