Skip to content
Myr

graceful-nested.js

This file

Path

test/fixtures/graceful-nested.js

7 lines · 329 bytes · JavaScript

Last changed by

Harden some thingsSindre Sorhusbefore adoption4a0a121

History of this file

Take it

Harden some thingsSindre Sorhusbefore adoption4a0a121

lines 1–7why, one step back
1#!/usr/bin/env node
2import {execa, getCancelSignal, sendMessage} from 'execa';34const cancelSignal = await getCancelSignal();5// Neither the messages nor the disconnection of this process' own subprocess must abort its `cancelSignal`6await execa('ipc-send-cancel-shape.js', {ipc: true});7await sendMessage(cancelSignal.aborted);