then-with-Executor
authorHans Fugal <fugalh@fb.com>
Tue, 21 Apr 2015 23:52:06 +0000 (16:52 -0700)
committerAlecs King <int@fb.com>
Mon, 27 Apr 2015 23:48:56 +0000 (16:48 -0700)
commitcd338595aadfd2fa7b545a7507ecdb59b81e88ab
tree21ac71e645e128ceb24ce273762161a954617260
parent23bf239f3c5930d3ff40b21d9195fa520a427abd
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
docblock comments

Reviewed By: jsedgwick@fb.com

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

FB internal diff: D2011542

Tasks: 67715896838553

Signature: t1:2011542:1429660204:f5959b1e0b3b36dfb8c3c7091302d19101dde93b
folly/futures/Future-inl.h
folly/futures/Future.h
folly/futures/test/ViaTest.cpp