Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Wait for multiple promises? #17

Open
fmaylinch opened this issue Dec 23, 2015 · 2 comments
Open

Wait for multiple promises? #17

fmaylinch opened this issue Dec 23, 2015 · 2 comments

Comments

@fmaylinch
Copy link

Sorry if this issue is not appropriate, but I wonder if I can wait for multiple promises to be fulfilled.

I was checking https://github.com/jdeferred/jdeferred and it has that feature. I understand the specification is different (jdeferred doesn't let you chain promises, for example).

Thank you!

@darylteo
Copy link
Owner

Sorry this library doesn't support it as it was designed to be barebones
and serve a single purpose - asynchronous return of a single value. The use
case you describe is more suited to a utility library.

However, you could combine it with the underlying rxjava observable and use
flatmap.

When I wrote this library rxjava was not very mature at that stage. Right
now you can easily replace this with a PublishSubject. That is what I would
recommend.

Regards,
Daryl

On Thu, Dec 24, 2015 at 4:40 AM Ferran Maylinch [email protected]
wrote:

Sorry if this issue is not appropriate, but I wonder if I can wait for
multiple promises to be fulfilled

I was checking https://githubcom/jdeferred/jdeferred and it has that
feature I understand the specification is different (it doesn't let you
chain promises, for example)

Thank you!


Reply to this email directly or view it on GitHub
#17.

@fmaylinch
Copy link
Author

fmaylinch commented Dec 28, 2015 via email

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

No branches or pull requests

2 participants