vente

Promise-based functions for waiting around.

Usage no npm install needed!

<script type="module">
  import vente from 'https://cdn.skypack.dev/vente';
</script>

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