Skip to content

Conversation

@cyan33
Copy link
Collaborator

@cyan33 cyan33 commented Nov 19, 2017

A few things that I feel quite confused:

  1. What's the meaning of once here?
  2. Is it necessary that in Deferred.all().then() we should get all of the results returned by each deferred instance?

@revan-zhang
Copy link
Owner

@thomasyimgit Thanks for it.

  1. tiny-deferred is from jQuery.deferred, it based on jQuery.Callback. once method is one of the flags from the Callback, actually I don't remember it's useful in deferred, maybe we should delete it at some time.
  2. yes, you are right. The return value for each promise instance should as a parameter to next fullfilled function or rejected function.That is my mistake, I create the tiny-deferred at about 1 year ago, at that time, I just want it work as simple, don't thinking too much of it. Sorry about that.

Repository owner deleted a comment from BhavyClover Feb 22, 2024
Repository owner deleted a comment from Sofia2933 Feb 23, 2024
Repository owner deleted a comment from leojin Feb 23, 2024
Repository owner deleted a comment from leojin Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants