Skip to content
Myr

ipc-get-concurrent.js

This file

Path

test/fixtures/ipc-get-concurrent.js

6 lines · 230 bytes · JavaScript

Last changed by

Fix IPC edge casesSindre Sorhusbefore adoption5f80cde

History of this file

Take it

Fix IPC edge casesSindre Sorhusbefore adoption5f80cde

lines 1–6why, one step back
1#!/usr/bin/env node
2import {argv} from 'node:process';3import {getOneMessage} from '../../index.js';45const messages = await Promise.all(Array.from({length: Number(argv[2])}, () => getOneMessage()));6console.log(messages.length);