0.1.6 • Published 7 months ago

promise-info v0.1.6

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

promise-information

Usage

const { getInfo, waitFor } = require('promise-information');

console.log(getInfo(new Promise(() => {})));
console.log(getInfo(Promise.resolve(0)));

Example output

{ state: 'pending', result: undefined, hasHandler: false }
{ state: 'fulfilled', result: 0, hasHandler: false }
0.1.2

7 months ago

0.1.1

7 months ago

0.1.4

7 months ago

0.1.3

7 months ago

0.1.6

7 months ago

0.1.5

7 months ago

0.1.0

9 months ago