A box of useful things to await for in async functions.
NOTE: It's recommended that you install only the packages that you need, rather than this package directly.
documentReady()
- Await for thedocument
to be ready.windowLoaded()
- Await for thewindow
to be loaded.meteorStartup()
- Await for Meteor's environment to be ready.sleep()
- Await for a certain amount of time.
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.
Please open an issue or PR if you have any ideas! :]