Promise
-based functions for waiting around.
npm i -S vente
or yarn add vente
import { wait, pending } from 'vente'
//...
await wait(1000)
//...
const pendingPromise = pending()
pendingPromise.resolve().then(() => alert('resolved!'))
// Or
pendingPromise.reject().catch(() => alert('rejected!'))
npm i && npm t
MIT