set
setasap
npm i setasap
set

setasap

setImmediate polyfill for the browser and node

by Taylor Hakes

2.0.1 (see all)License:MITTypeScript:DefinitelyTyped
npm i setasap
Readme

setAsap Build Status

setImmediate polyfill for the browser and node. This is an alternative to setTimeout(fn, 0), which behaves like setTimeout(fn, 4). setAsap will execute immediately. It has unmatched performance and is extremely lightweight.

Install

npm install setasap --save

Use

setAsap(function() {
  // do something async
});

Note

Currently, there is no way to cancel setAsap. The code base is much smaller without it.

Downloads/wk

9.2K

GitHub Stars

41

LAST COMMIT

2yrs ago

MAINTAINERS

1

CONTRIBUTORS

4

OPEN ISSUES

0

OPEN PRs

6
VersionTagPublished
2.0.1
latest
5yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate