@furystack/core
Version:
Core FuryStack package
16 lines • 725 B
TypeScript
/**
* Disposables registered for shutdown. Side-effecting on import: the
* exported set is populated by {@link disposeOnProcessExit} and drained by
* {@link exitHandler} on Node lifecycle signals + the browser
* `beforeunload` event.
*/
export declare const globalDisposables: Set<Disposable | AsyncDisposable>;
/**
* Shutdown handler bound to Node lifecycle signals (`exit`, `SIGINT`,
* `SIGTERM`, `SIGUSR1`, `SIGUSR2`, `uncaughtException`) and the browser
* `beforeunload` event. Disposes everything in {@link globalDisposables}
* concurrently and logs failures without rethrowing — process is already
* exiting.
*/
export declare const exitHandler: () => void;
//# sourceMappingURL=global-disposables.d.ts.map