unload-object

1.0.2 • Public • Published

Unload any object

This software allows to unload any object, i.e. Timers, Sockets.

It is usefull when a function returns something, that may be terminated in different ways.

Supported JavaScript object

  • Node.js: Timers
  • Node.js: Sockets
  • Browser: Timers

Install & Usage

npm install unload-object
const unload = require("unload-object").unload;

var t1 = setTimeout(() => { console.log("Hi"); });
unload(t1); // t1 never fires

License

This software is released under the MIT license.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Package Sidebar

Install

npm i unload-object

Weekly Downloads

6

Version

1.0.2

License

MIT

Unpacked Size

9.1 kB

Total Files

5

Last publish

Collaborators

  • simonwalz