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

0.0.4 • Public • Published
import { AsyncKiwi } from 'asynckiwi';

const asyncKiwi = new AsyncKiwi(),
    sleep = (ms: number) => new Promise(res => setTimeout(res, ms));

(async() => {
    await asyncKiwi.wait();
    try {
        await sleep(1000);
    } finally {
        asyncKiwi.next();
    }
})();

Readme

Keywords

Package Sidebar

Install

npm i asynckiwi

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

5.2 kB

Total Files

7

Last publish

Collaborators

  • d3tu