then-with-Executor
authorHans Fugal <fugalh@fb.com>
Fri, 17 Apr 2015 17:41:45 +0000 (10:41 -0700)
committerAlecs King <int@fb.com>
Mon, 27 Apr 2015 23:45:33 +0000 (16:45 -0700)
commit4e907f707a04a334256b939acc6b810c0b882f86
tree5f1cd84c53db0198f107ebf25dd6831934b991b5
parentd2c954b7c80b7c63880c3fde55028c169f553239
then-with-Executor

Summary:
Pass an Executor to `then`, which applies only for that callback. This is on
the one hand just a convenience method, but it's a major convenience when it's
needed, because grabbing, storing, and restoring the old Executor in the
middle of a chain is very inconvenient indeed.

Test Plan:
new unit

Reviewed By: jsedgwick@fb.com

Subscribers: robbert, exa, folly-diffs@, jsedgwick, nkgupta, yfeldblum, chalfant, davejwatson

FB internal diff: D1985475

Signature: t1:1985475:1429148056:0450120263ba8110e8825420cbefe3b1887f7306
folly/futures/Future-inl.h
folly/futures/Future.h
folly/futures/test/ViaTest.cpp