Skip to content

Wrap an async function and ensure it calls its callback on a later tick of the event loop.

Notifications You must be signed in to change notification settings

async-js/async.ensureasync

Repository files navigation

ensure-async

Last version Dependency status Dev Dependencies Status NPM Status Gratipay

Wrap an async function and ensure it calls its callback on a later tick of the event loop. Based on async#ensureAsync as module.

Install

npm install ensure-async --save

If you want to use in the browser (powered by Browserify):

bower install ensure-async --save

and later link in your HTML:

<script src="bower_components/ensure-async/dist/ensure-async.js"></script>

Usage

var ensureAsync = require('ensure-async');

License

MIT © Kiko Beats

About

Wrap an async function and ensure it calls its callback on a later tick of the event loop.

Resources

Stars

Watchers

Forks

Packages

No packages published