ManualExecutor: add clear method
authorSven Over <over@fb.com>
Thu, 14 Jul 2016 15:13:31 +0000 (08:13 -0700)
committerFacebook Github Bot 8 <facebook-github-bot-8-bot@fb.com>
Thu, 14 Jul 2016 15:23:36 +0000 (08:23 -0700)
commita5f4fbe06a9962f5f230960fb418cb2d5ecb88b2
treea6a967d8c5fbc23cfdb603668786edfbe1212090
parentf51158b61b5f4e6f75a3c721e90a4078bde1c29f
ManualExecutor: add clear method

Summary:
ManualExecutor::clear removes all waiting functions from the
executor.

Reviewed By: yfeldblum

Differential Revision: D3555434

fbshipit-source-id: 604c352f2299b0dada062e5f8287be98e2a5f72c
folly/futures/ManualExecutor.h
folly/futures/test/ExecutorTest.cpp