(Wangle) unorderedReduce
Summary:
Use this if you don't need the order of the input, e.g. summing up
values. This constructs a separate Future chain to do the reducing,
because we don't want to add locking while reducing. The only lock
necessary is when adding a new Future to the chain, which should be
really quick.
Test Plan: Run all the tests.
Reviewed By: hans@fb.com
Subscribers: folly-diffs@, jsedgwick, yfeldblum, chalfant
FB internal diff:
D2015326
Tasks:
6025252
Signature: t1:
2015326:
1431557191:
9ea2edccb0162dedf067b5b3300de2fe72a1a4c9