
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
This very simple library adds logic operators to compose promises. Operators added:
asyncRejectOnFirstRejected
(rejects as soon as one of the input promises is rejected)syncResolveOnAllResolved
(rejects when all promises are completed and at least one of them is rejected)not
asyncResolveOnFirstResolved
(resolves as soon as one of the input promises is resolved.)syncRejectOnAllRejected
(resolves when all promises are completed and at least one of them is resolved.)Installation:
npm install ql
Usage:
The library extends Q
:
Q = require('ql');
...
p1 = myAjaxCallReturningAPromise()
p2 = myOtherCallReturningAPromise()
...
Q.asyncResolveOnFirstResolved(p1,Q.not(p2)).then(function() {
console.log("Either p1 succeeded or p2 failed");
})
FAQs
Use logic to compose promises
The npm package ql receives a total of 368 weekly downloads. As such, ql popularity was classified as not popular.
We found that ql demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.