Chain executor in timeout functions
authorDave Watson <davejwatson@fb.com>
Fri, 29 May 2015 17:08:22 +0000 (10:08 -0700)
committerNoam Lerner <noamler@fb.com>
Wed, 3 Jun 2015 16:51:17 +0000 (09:51 -0700)
commit8900cad8f8156ab4228ee3ace06e998e56b4c0bb
treee218a2f1c80c0364fa667bc12d0873c8b5572561
parent8b9a09ce4320290b698f5a7804f25548ca85d10f
Chain executor in timeout functions

Summary: within, onTimeout, etc use the executor of the future if it is set.

Test Plan: added unittest

Reviewed By: hans@fb.com

Subscribers: doug, folly-diffs@, jsedgwick, yfeldblum, chalfant

FB internal diff: D2104770

Tasks: 6958727

Signature: t1:2104770:1432773599:a71c00827071bef46e5700de04c7125142e4eb17
folly/futures/Future-inl.h
folly/futures/test/TimekeeperTest.cpp