2.1.1 • Published 8 years ago
awaitbox v2.1.1
awaitbox
A box of useful things to await for in async functions.
npm i awaitbox --save
NOTE: It's recommended that you install only the packages that you need, rather than this package directly.
Available tools
documentReady()- Await for thedocumentto be ready.windowLoaded()- Await for thewindowto be loaded.meteorStartup()- Await for Meteor's environment to be ready.sleep()- Await for a certain amount of time.
Compatibility
This package is written in ES2016+ JavaScript. To use this in pre-ES2016 environments, you'll need to run this through a transpiler like Babel (and I recommend using the fast-async plugin to get the best results). See some tips on wiring it up with Webpack.
Contributing
Please open an issue or PR if you have any ideas! :]