Skip to content
Myr

ipc-send-many.js

This file

Path

test/fixtures/ipc-send-many.js

6 lines · 213 bytes · JavaScript

Last changed by

Debounce `message` events (#1087)ehmickybefore adoptione8bab97

History of this file

Take it

Debounce `message` events (#1087)ehmickybefore adoptione8bab97

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