1.2.1 • Published 7 years ago
@compositor/qp v1.2.1
qp
A light, stateful wrapper for promises.
installation
npm install --save @compositor/qp
usage
var qp = require('@compositor/qp')
const p = qp(new Promise((resolve, reject) => {}))
p.isRejected()
p.isResolved()
p.isFinished()
qp.all
var qp = require('@compositor/qp')
const px = qp.all([
new Promise((resolve, reject) => resolve()),
new Promise((resolve, reject) => setTimeout(resolve, 100)),
new Promise((resolve, reject) => reject())
])
px.isRejected()
px.isResolved()
px.isFinished()
px.status()
contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Crafted with <3 by (@getcompositor).