Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A pending queued promise which calls another pending queued promise will never resolve #3

Open
brian-mann opened this issue Feb 17, 2016 · 1 comment
Labels

Comments

@brian-mann
Copy link

queue = new PSemaphore;

foo = function() {
  return queue.add(function() {
    return bar()
  });
};

bar = function() {
  return queue.add(function(){})
};

foo().then(function() {
 console.log("this will never resolve or get called")
});
@samccone samccone added the bug label Feb 17, 2016
samccone added a commit that referenced this issue Feb 19, 2016
@samccone
Copy link
Owner

After more investigation, this is a very classic queue problem, zones should be able fix this because things will be aware who is calling what and the dependency order

For now if you increase your room count to your call queue stack depth it will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants