~smspillaz/folly/folly-git-master

Viewing all changes in revision 5692.

  • Committer: Facebook Github Bot
  • Author(s): Chad Austin
  • Date: 2018-07-18 16:37:12 UTC
  • Revision ID: git-v1:a72a920ced9ec4cd67188f854f87199a71e9db0c
Drain ManualExecutor on destruction

Summary:
For use in tests where the executor has a nontrivial lifetime but any
queued jobs should be completed, have ManualExecutor drain itself
before it's destroyed.

Reviewed By: yfeldblum

Differential Revision: D8845457

fbshipit-source-id: 7c2aa65aa27a7850ff73a93cfbe34c2248b62d26

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: