Add TimedDrivableExecutor to folly.
authorLee Howes <lwh@fb.com>
Fri, 19 Jan 2018 17:18:41 +0000 (09:18 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 19 Jan 2018 17:46:52 +0000 (09:46 -0800)
commit20808864dfde991fd740e6caefe632d4bf244d69
treeb99ad999fff915738af1a653d31e9baa256cead3
parentf57db69787a7b3f7450c157e40e137d793c0b9fa
Add TimedDrivableExecutor to folly.

Summary: Adds a TimedDrivableExecutor implementation of DrivableExecutor that adds a driveUntil method. driveUntil is as drive, except that it takes a timepoint and will stop driving after that time to allow callers to time out more easily.

Reviewed By: yfeldblum

Differential Revision: D6658320

fbshipit-source-id: a75145748e78497ce107ae152f25729547883835
CMakeLists.txt
folly/Makefile.am
folly/executors/TimedDrivableExecutor.cpp [new file with mode: 0644]
folly/executors/TimedDrivableExecutor.h [new file with mode: 0644]
folly/executors/test/TimedDrivableExecutorTest.cpp [new file with mode: 0644]