~smspillaz/folly/folly-git-master

Viewing all changes in revision 7477.

  • Committer: Facebook Github Bot
  • Author(s): Lewis Baker
  • Date: 2019-08-22 18:38:26 UTC
  • Revision ID: git-v1:1a0ddc9c182cbf490ff4ca5e6d80ed9021f36e43
Add cancellable folly::coro::sleep()

Summary:
Adds folly::coro::sleep() function as an alternative to using folly::futures::sleep().

The coro version returns a Task<void> and supports cancellation of the sleep operation when awaited within another Task.

Reviewed By: kirkshoop

Differential Revision: D16816328

fbshipit-source-id: 46bc4ee2475e6bd0bdfd0f7f30f3e0f1ea54d4d5

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: