I agree this isn't ideal (it's a design hack that wasn't very well
thought through on the part of Bluebird IMHO), but not on your
justification (which comes across as borderline off-topic). Most
complex exception handling with promises are effectively handled using
async/await, but I agree the
> On 26 Apr 2018, at 12:08 PM, Ayush Gupta wrote:
>
> It might be worth **explicitly** mentioning that it's not about types either,
> the benefit with using functions as the filter is that we can tackle a lot of
> cases. Consider this:
>
> ```js
> return somePromise
>
2 matches
Mail list logo