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 fileTake it
1234567891011#!/usr/bin/env nodeimport {sendMessage, getEachMessage} from '../../index.js';import {foobarString} from '../helpers/input.js';
const iterable = getEachMessage();await sendMessage(foobarString);
for await (const message of iterable) { console.log(message);}