This version (2017/05/27 13:44) is a draft.
Approvals: 0/1

[10:02:44] <dns_> hi there! Is it possible to create futures dynamically for using them in CompositeFuture.all(List<Future>) ?

[10:08:21] <tsegismont> dns_, hi, can you elaborate ?

[10:09:12] <dns_> tsegismont, hi. What do you mean?

[10:09:38] <tsegismont> what do you mean by creating dynamically?

[10:12:22] * ChanServ sets mode: +o purplefox [10:12:22] <dns_> I have some objects in JsonArray. I don't know how much potentially. I have to use futures for coordinate processing each of them (some steps with async calls. Actually - 4 futures). [10:13:27] <dns_> so.. i have 4 futures on each cycle iteration. Is it possible to compose all futures and set single handler for futures from each cycle iteration? [10:25:19] <tsegismont> So you would like to create a composite future, without knowing the list of futures in advance, right? [10:33:55] <dns_> yes! [11:10:24] <dns_> so.. I tried to create an example. Here it is: https://gist.github.com/ivanovdns/80d5ae159b306537548a85be23b705fc [11:39:28] <tsegismont> dns_, and you have no way to accumulate the futures in a list while processing your json elements? [11:45:58] <dns_> hmm.. How can I register an CompositeFuture.all handler if I have not accumulated list of futures? If I understand you properly.. [11:49:35] <tsegismont> Can you update your gist to show how processing your json works; it's not clear to me yet [11:57:54] <dns_> Yes, sure. But later ;) [11:58:09] <tsegismont> no pb [11:58:45] <dns_> if my example is ok it will be great to add it to examples repo :) [14:54:09] * ChanServ sets mode: +o purplefox

[19:23:08] * ChanServ sets mode: +o purplefox [19:32:25] * ChanServ sets mode: +o temporalfox

[20:37:00] * ChanServ sets mode: +o purplefox [21:48:33] * ChanServ sets mode: +o temporalfox

[23:02:12] * ChanServ sets mode: +o temporalfox [23:13:26] * ChanServ sets mode: +o purplefox