vente
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

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

Package Sidebar

Install

npm i vente

Weekly Downloads

0

Version

3.1.0

License

MIT

Unpacked Size

2.79 kB

Total Files

3

Last publish

Collaborators

  • progging