8000
Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 immediato

Usage

import {setImmediate, clearImmediate} from 'immediato';

// Let's scheduling a function for execution

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

// Let's cancel a scheduled function

clearImmediate ( immediateId );

License

MIT © Fabio Spampinato

About

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

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0