ipc-iterate.js
This file
Path
test/fixtures/ipc-iterate.js
11 lines · 256 bytes · JavaScript
Last changed by
Add `result.ipc`/`error.ipc` (#1067)ehmickybefore adoption3ab34de
History of this fileTake it
Add promise-based IPC (#1059)ehmickybefore adoptionacc2b68
line 1why, one step back1#!/usr/bin/env nodeAdd `result.ipc`/`error.ipc` (#1067)ehmickybefore adoption3ab34de
line 2why, one step back2import {getEachMessage, sendMessage} from '../../index.js';Add promise-based IPC (#1059)ehmickybefore adoptionacc2b68
lines 3–9why, one step back3import {foobarString} from '../helpers/input.js';45for await (const message of getEachMessage()) {6 if (message === foobarString) {7 break;8 }9Add `result.ipc`/`error.ipc` (#1067)ehmickybefore adoption3ab34de
line 10why, one step back10 await sendMessage(message);Add promise-based IPC (#1059)ehmickybefore adoptionacc2b68
line 11why, one step back11}