Skip to content
Myr

ipc-iterate-break.js

This file

Path

test/fixtures/ipc-iterate-break.js

11 lines · 292 bytes · JavaScript

Last changed by

Debounce `message` events (#1087)ehmickybefore adoptione8bab97

History of this file

Take it

Add more IPC-related tests (#1083)ehmickybefore adoptionc09bb18

lines 1–4why, one step back
1#!/usr/bin/env node
2import {sendMessage, getEachMessage} from '../../index.js';3import {foobarString} from '../helpers/input.js';4

Debounce `message` events (#1087)ehmickybefore adoptione8bab97

line 5why, one step back
5const iterable = getEachMessage();

Add more IPC-related tests (#1083)ehmickybefore adoptionc09bb18

lines 6–8why, one step back
6await sendMessage(foobarString);
78// eslint-disable-next-line no-unreachable-loop

Debounce `message` events (#1087)ehmickybefore adoptione8bab97

line 9why, one step back
9for await (const _ of iterable) {

Add more IPC-related tests (#1083)ehmickybefore adoptionc09bb18

lines 10–11why, one step back
10 break;
11}