-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace the current signal API with one following a similar model to EventTarget, a la Deno. Before ``` const sh = tjs.signal('SIGINT', handleSigInt); // sh needs to be alive or the signal handler is destroyed. ``` After ``` tjs.addSignalListener('SIGINT', handleSigInt); // No need to use a handle, it can be removed with // tjs.removeSignalListener. ``` Fixes: #476 Ref: #477
- Loading branch information
Showing
6 changed files
with
10,104 additions
and
9,952 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.