Skip to content

More than 10 promises will not resolve. #5

Description

@gigablox

If you do something like:

  _dashboard.getGuideLocationDetails = function(guideLocations){
    var promises = [];
    var locationDetails = [];

    angular.forEach(guideLocations, function(location){
      if(location.placesRef){
        promises.push(ngGPlacesAPI.placeDetails({reference:location.placesRef}).then(function(l){
          locationDetails.push(l);
        }));
      }
    });

    return $q.all(promises).then(function(){
      return locationDetails;
    });
  }

Where you are handling more then 10 refs, it just doesn't resolve.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions