Method Concurrent.Promise()->depend()
- Method depend
this_programdepend(array(Future)futures)
localvariantthis_programdepend(Future...futures)
variantthis_programdepend()- Description
Add futures to the list of futures which the current object depends upon.
If called without arguments it will produce a new Future from a new Promise which is implictly added to the dependency list.
- Parameter
futures The list of
futureswe want to add to the list we depend upon.- Returns
The new Promise.
- Note
Can be called multiple times to add more.
- Note
Once the promise has been materialised (when either on_success(), on_failure() or get() has been called on this object), it is not possible to call depend() anymore.
- See also
fold(), first_completed(), max_failures(), min_failures(), any_results(), Concurrent.results(), Concurrent.all()