[jira] [Commented] (MESOS-5038) Added a any mechanism for futures

2016-04-07 Thread haosdent (JIRA)
[ https://issues.apache.org/jira/browse/MESOS-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15231476#comment-15231476 ] haosdent commented on MESOS-5038: - Compare with use {{Future any(const std::list& futures)}}, the

[jira] [Commented] (MESOS-5038) Added a any mechanism for futures

2016-04-07 Thread haosdent (JIRA)
[ https://issues.apache.org/jira/browse/MESOS-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15231474#comment-15231474 ] haosdent commented on MESOS-5038: - [~gilbert] I have already changed to use {code} Future

[jira] [Commented] (MESOS-5038) Added a any mechanism for futures

2016-04-06 Thread haosdent (JIRA)
[ https://issues.apache.org/jira/browse/MESOS-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15229577#comment-15229577 ] haosdent commented on MESOS-5038: - We could add to await as well. But as you see, {code}

[jira] [Commented] (MESOS-5038) Added a any mechanism for futures

2016-04-05 Thread Jay Guo (JIRA)
[ https://issues.apache.org/jira/browse/MESOS-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15227588#comment-15227588 ] Jay Guo commented on MESOS-5038: BTW, would it be nice to have an await() that handles futures with a

[jira] [Commented] (MESOS-5038) Added a any mechanism for futures

2016-04-05 Thread haosdent (JIRA)
[ https://issues.apache.org/jira/browse/MESOS-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15226697#comment-15226697 ] haosdent commented on MESOS-5038: - Thanks for pointing this! I don't know this before. My concern is it

[jira] [Commented] (MESOS-5038) Added a any mechanism for futures

2016-04-05 Thread Jie Yu (JIRA)
[ https://issues.apache.org/jira/browse/MESOS-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15226584#comment-15226584 ] Jie Yu commented on MESOS-5038: --- Do you know we have a 'select' already in libprocess:

[jira] [Commented] (MESOS-5038) Added a any mechanism for futures

2016-04-05 Thread Gilbert Song (JIRA)
[ https://issues.apache.org/jira/browse/MESOS-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15226574#comment-15226574 ] Gilbert Song commented on MESOS-5038: - Sounds good. For now, the mode with `any` and `all` is enough

[jira] [Commented] (MESOS-5038) Added a any mechanism for futures

2016-04-05 Thread haosdent (JIRA)
[ https://issues.apache.org/jira/browse/MESOS-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15226542#comment-15226542 ] haosdent commented on MESOS-5038: - Probably we could continue to use {{collect}}, but add an additional

[jira] [Commented] (MESOS-5038) Added a any mechanism for futures

2016-04-05 Thread Gilbert Song (JIRA)
[ https://issues.apache.org/jira/browse/MESOS-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15225735#comment-15225735 ] Gilbert Song commented on MESOS-5038: - Thanks [~haosd...@gmail.com], I like this idea, and definitely

[jira] [Commented] (MESOS-5038) Added a any mechanism for futures

2016-03-28 Thread haosdent (JIRA)
[ https://issues.apache.org/jira/browse/MESOS-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15213869#comment-15213869 ] haosdent commented on MESOS-5038: - As you see, we use {{any}} in https://reviews.apache.org/r/45085/diff/

[jira] [Commented] (MESOS-5038) Added a any mechanism for futures

2016-03-28 Thread Jay Guo (JIRA)
[ https://issues.apache.org/jira/browse/MESOS-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15213864#comment-15213864 ] Jay Guo commented on MESOS-5038: [~haosd...@gmail.com] Do you mind giving an example where we may use this

[jira] [Commented] (MESOS-5038) Added a any mechanism for futures

2016-03-28 Thread haosdent (JIRA)
[ https://issues.apache.org/jira/browse/MESOS-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15213856#comment-15213856 ] haosdent commented on MESOS-5038: - [~guoger] For example, you wait for a list of futures. You want to

[jira] [Commented] (MESOS-5038) Added a any mechanism for futures

2016-03-27 Thread Jay Guo (JIRA)
[ https://issues.apache.org/jira/browse/MESOS-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15213808#comment-15213808 ] Jay Guo commented on MESOS-5038: what's the use case of this one? > Added a any mechanism for futures >