vente
v3.1.0
Published
Promise-based functions for waiting around
Downloads
3
Maintainers
Readme
VENTE
Promise
-based functions for waiting around.
Install
npm i -S vente
or yarn add vente
Usage
import { wait, pending } from 'vente'
//...
await wait(1000)
//...
const pendingPromise = pending()
pendingPromise.resolve().then(() => alert('resolved!'))
// Or
pendingPromise.reject().catch(() => alert('rejected!'))
Test
npm i && npm t
License
MIT