question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Promise.guard()

See original GitHub issue

The when/guard feature of https://github.com/cujojs/when/blob/master/docs/api.md#whenguard is very convenient for managing excessive parallelism. Any chance we could see that feature added to bluebird? (Promise.guard(5, ...) might be a reasonable API.)

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gaearoncommented, Feb 6, 2014

I used something similar to limit spawning ImageMagick processes.

0reactions
spioncommented, Feb 6, 2014

@petkaantonov yes maybe, if a promise constructor was passed to it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular Auth Guard with a Promise and if statement
Route guards run when the user is already trying to navigate to a page. If the route guard returns true, that navigation is...
Read more >
promise-guard - npm
Given an array or object of promises, attemps to resolve them to an array or object of the resolved values. Converts rejected promises...
Read more >
Angular 11: Help with Auth Guard and Promise from service
I have an Angular 11 app with an auth guard that uses a custom service. I am new to the concept of promises...
Read more >
Guards | NestJS - A progressive Node.js framework
A guard is a class annotated with the @Injectable() decorator, ... the response either synchronously or asynchronously (via a Promise or Observable )....
Read more >
promises/index.md at master · google/promises - GitHub
Promises is a modern framework that provides a synchronization construct for Swift and Objective-C. - promises/index.md at master · google/promises.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found