https://github.com/nuintun/microtask
A pure JavaScript cross browser microtask
https://github.com/nuintun/microtask
microtask microtasks
Last synced: 2 months ago
JSON representation
A pure JavaScript cross browser microtask
- Host: GitHub
- URL: https://github.com/nuintun/microtask
- Owner: nuintun
- License: mit
- Created: 2017-12-04T02:51:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-26T21:59:31.000Z (over 1 year ago)
- Last Synced: 2025-10-06T17:03:28.734Z (7 months ago)
- Topics: microtask, microtasks
- Language: JavaScript
- Homepage: https://nuintun.github.io/microtask
- Size: 454 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# microtask
> A pure JavaScript cross browser microtask.
>
> [![Dependencies][david-image]][david-url]
### Usage
```js
microtask(function() {
console.log('Hello, World!');
});
microtask(function(message) {
console.log(message);
}, 'Hello, World!');
```
### Examples
> [examples/index.html](https://nuintun.github.io/microtask/examples/index.html)
### Thanks
> [calvinmetcalf/immediate](https://github.com/calvinmetcalf/immediate)
[david-image]: http://img.shields.io/david/dev/nuintun/microtask.svg?style=flat-square
[david-url]: https://david-dm.org/nuintun/microtask?type=dev