Skip to content
/ interrupt Public

A task queue for handling interrupt signals in Deno.

License

Notifications You must be signed in to change notification settings

117/interrupt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

interrupt

version status

A task queue for handling interrupt signals in Deno.

Contents

Features

  • Register tasks to be executed in sequence upon interrupt signals.
  • Handles SIGINT and SIGTERM signals gracefully.
  • Provides a globally accessible task queue via import.

Install

For Deno:

$ deno add @117/interrupt

Example

import { addTask } from "@117/interrupt";

addTask(() => console.log("goodbye"));
addTask(() => console.log("goodbye, for real this time"));

console.log("app is running, press ctrl+c to exit");

Contributing

Feel free to contribute and PR to your 💖's content.

About

A task queue for handling interrupt signals in Deno.

Resources

License

Stars

Watchers

Forks