Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nuintun/microtask

A pure JavaScript cross browser microtask
https://github.com/nuintun/microtask

microtask microtasks

Last synced: 4 days ago
JSON representation

A pure JavaScript cross browser microtask

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