Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cancel the timeout in timed_wait on success
Summary: `timed_wait` is not expected to frequently time-out, so by canceling the timer we can save a wake-up of the future timekeeper eventbase. In reality we don't always save it because in order to cancel the timeout we have to enqueue a task in the eventbase, which also may wake it up, unless the queue is already non-empty in which case we can enjoy some batching, but on average this should be a minor improvement (and we may optimize that separately). Other timeout primitives like `folly::coro::timeout` already do this. Reviewed By: dmm-fb Differential Revision: D48832670 fbshipit-source-id: c3534aa067b7e49b44954b5f81938754e2d6eefd
- Loading branch information