Skip to content

Instantly share code, notes, and snippets.

View saeidabdi's full-sized avatar

saeed abdi saeidabdi

  • Iran
View GitHub Profile
@saeidabdi
saeidabdi / run-parallel.js
Last active January 4, 2023 07:31
test run nodejs parallel
/**
* test run nodejs parallel
*/
function task1() {
return new Promise(async (resolve, reject) => {
const count = 100;
let i = 0;
while (i < count) {
await sleap(2000)