Comments (5)
Can use https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/allSettled
from graceful.
Could you submit PR?
from graceful.
Sure, I'll try by the weekend. Though it's only supported in NodeJS >= 12.9
from graceful.
@niftylettuce did you encountered such case, which one of the stops rejected caused Promise.all
to reject.
From a quick code review, I see that each xStop
is wrapped with try
& catch
which means that it can't return a rejection... (https://github.com/ladjs/graceful/blob/master/index.js#L77-L81)
Am I right?
from graceful.
Yeah, you're correct @felixmosh. I think instead we should have it return an object of errors: [], values: []
or something. I'm open to opinions.
from graceful.
Related Issues (8)
- Action required: Greenkeeper could not be activated 🚨
- Is it ok to expose `config` field in TS types? HOT 3
- Error: Cannot find module 'node:http' in ^3.0.1 version with Node v14.17.2 HOT 2
- [feat] node-cron example
- No hideMeta options in constructor Graceful
- Feature request: Allow custom handlers HOT 1
- Wrong constructor options type
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graceful.