Socket
Socket
Sign inDemoInstall

immediato

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    immediato

An isomorphic setImmediate implementation that doesn't prevent the process from exiting naturally.


Version published
Weekly downloads
7
decreased by-80%
Maintainers
1
Install size
5.99 kB
Created
Weekly downloads
 

Readme

Source

Immediato

An isomorphic setImmediate implementation that doesn't prevent the process from exiting naturally.

This implementation requires the MessageChannel API, so it works the same everywhere, and the implementation is tiny.

Install

npm install --save immediato

Usage

import {setImmediate, clearImmediate} from 'immediato';

// Scheduling a function for execution

const immediateId = setImmediate ( () => {
  // Do something...
});

// Cancelling a scheduled function

clearImmediate ( immediateId );

License

MIT © Fabio Spampinato

Keywords

FAQs

Last updated on 16 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc