SkillAgentSearch skills...

SetAsap

setImmediate polyfill for the browser and node

Install / Use

/learn @taylorhakes/SetAsap
About this skill

Quality Score

0/100

Supported Platforms

Universal

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.

View on GitHub
GitHub Stars43
CategoryDevelopment
Updated1y ago
Forks4

Languages

JavaScript

Security Score

75/100

Audited on Nov 22, 2024

No findings