-
Notifications
You must be signed in to change notification settings - Fork 0
Wait for multiple promises to "be done" #2
Comments
@vespakoen this is something that I wanted since the beginning, but I was not comfortable with the results after implementing it. |
@vespakoen I have a new branch Version 1.0, on this branch the feature you're looking is implemented. but I changed a lot on the design. At the moment I'm trying to document everything. |
Hi, just chiming in here - have you ever thought if it might be possible to use Futuristic promises with AFMotion? It'd be awesome if I could encapsulate an AFMotion request behind a promise (or future) so that the block called when the AFMotion request finishes ends up 'completing' the promise. Is that something you have considered? It'd make a whole lot of back-end interaction code (for example, with a RESTful API) so much easier to write, and profoundly more readable as code. |
@matthewsinclair this is one of features the new branch introduces. You will be able to use Promises to accomplish this kind of thing and even react to error. Tonight will be working on the specs and documentation. e.g: https://github.com/seanlilmateus/futuristic/blob/version_1_0/lib/futuristic/future.rb#L6-L15 |
That sounds brilliant. I think that pattern will radically simplify the code for a lot of network / async operations. Thanks! On 18 Feb 2014, at 7:05 pm, Mateus [email protected] wrote:
|
Hi there!
In other promise libraries I was able to do something like:
Is this possible with futuristic?
If not, are there any plans to add this in?
The text was updated successfully, but these errors were encountered: