Skip to content

Instantly share code, notes, and snippets.

View Akintunde102's full-sized avatar

Akintunde Akintunde102

  • Remote in Nigeria
View GitHub Profile
@Akintunde102
Akintunde102 / nodeAsyncTest.js
Created December 16, 2018 15:02 — forked from aescarcha/nodeAsyncTest.js
Javascript async / await resolving promises at the same time test
// Simple gist to test parallel promise resolution when using async / await
function promiseWait(time) {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve(true);
}, time);
});
}