Skip to content
Myr

ipc-iterate-send.js

This file

Path

test/fixtures/ipc-iterate-send.js

10 lines · 265 bytes · JavaScript

Last changed by

Fix `break` statement with `subprocess.getEachMessage()` (#1082)ehmickybefore adoption7143492

History of this file

Take it

Fix `break` statement with `subprocess.getEachMessage()` (#1082)ehmickybefore adoption7143492

lines 1–10why, one step back
1#!/usr/bin/env node
2import {sendMessage, getEachMessage} from '../../index.js';3import {foobarString} from '../helpers/input.js';45const iterable = getEachMessage();6await sendMessage(foobarString);78for await (const message of iterable) {9 console.log(message);10}