Skip to content
Myr

ipc-echo-wait.js

This file

Path

test/fixtures/ipc-echo-wait.js

6 lines · 194 bytes · JavaScript

Last changed by

Add promise-based IPC (#1059)ehmickybefore adoptionacc2b68

History of this file

Take it

Add promise-based IPC (#1059)ehmickybefore adoptionacc2b68

lines 1–6why, one step back
1#!/usr/bin/env node
2import {setTimeout} from 'node:timers/promises';3import {sendMessage, getOneMessage} from '../../index.js';45await setTimeout(1e3);6await sendMessage(await getOneMessage());