(Wangle) Make via behave more like gate
authorHans Fugal <fugalh@fb.com>
Tue, 30 Sep 2014 22:52:52 +0000 (15:52 -0700)
committerDave Watson <davejwatson@fb.com>
Tue, 30 Sep 2014 23:17:18 +0000 (16:17 -0700)
commit684bae3b8250b2a7e4f4ce920d3b12476d581526
tree0e356de11ac1949329a2ecd0b6ce413a61278712
parentc9f0ed55a3c0d91a368e48ce99409a4a2f0951d7
(Wangle) Make via behave more like gate

Summary:
Could the problem be that via continues the existing chain of futures,
whereas we actually want to start a new chain?

Is there any particular reason this wasn't implemented like this originally?

Test Plan:
Ran all the unit tests. I hope to try to reproduce the thread issue and
see if this improves things.

Reviewed By: davejwatson@fb.com

Subscribers: trunkagent, net-systems@, exa, njormrod, fugalh

FB internal diff: D1500225

Tasks: 4920689
folly/wangle/Future-inl.h
folly/wangle/Future.h
folly/wangle/detail/State.h
folly/wangle/test/FutureTest.cpp