MCPcopy
hub / github.com/microsoft/playwright / gracefullyCloseAll

Function gracefullyCloseAll

packages/utils/processLauncher.ts:54–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52const killSet = new Set<() => void>();
53
54export async function gracefullyCloseAll() {
55 await Promise.all(Array.from(gracefullyCloseSet).map(gracefullyClose => gracefullyClose().catch(e => {})));
56}
57
58export function gracefullyProcessExitDoNotHang(code: number, onExit?: () => Promise<void>) {
59 // Force exit after 30 seconds.

Callers 7

handleExitFunction · 0.90
runCommandOnSnapshotFunction · 0.90
gracefullyCloseMethod · 0.90
sigintHandlerFunction · 0.85
sigtermHandlerFunction · 0.85
sighupHandlerFunction · 0.85

Calls 4

gracefullyCloseFunction · 0.85
catchMethod · 0.80
allMethod · 0.65
fromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…