add support for whenAll to waitWithSemaphore
authorMatt Dordal <mnd@fb.com>
Fri, 23 May 2014 16:19:20 +0000 (09:19 -0700)
committerAnton Likhtarov <alikhtarov@fb.com>
Mon, 9 Jun 2014 22:35:00 +0000 (15:35 -0700)
commitd82763a62158b77e6504535907537e1a66545264
tree43579dd8bf6a12e0b1c0483c4054601e0d45cf17
parent3bb510706c136314efae6899688de2c4246c0e9f
add support for whenAll to waitWithSemaphore

Summary:
waitWithSemaphore currently doesn't support vector<Try<T>>, unless T is void.
Fix that, and also add a now-required void specialization.

Test Plan:
Add a test that uses vector<Try<bool>>, ensure that the tests compile
(and pass).

Reviewed By: hans@fb.com

Subscribers: folly@lists, fugalh

FB internal diff: D1338528

Tasks: 4389473
folly/wangle/Future-inl.h
folly/wangle/Future.h
folly/wangle/test/FutureTest.cpp