diff --git a/folly/experimental/coro/Sleep.h b/folly/experimental/coro/Sleep.h index 0934471684e..cb85e90fbb3 100644 --- a/folly/experimental/coro/Sleep.h +++ b/folly/experimental/coro/Sleep.h @@ -27,17 +27,14 @@ namespace coro { /// Return a task that, when awaited, will sleep for the specified duration. /// -/// Throws folly::OperationCancelled if cancellation is requested -/// on the awaiting coroutine's associated CancellationToken. -/// -/// NOTE: The default tk has Duration resolution, supply -/// ThreadWheelTimekeeperHighRes for maximum sleep resolution +/// Throws folly::OperationCancelled if cancellation is requested on the +/// awaiting coroutine's associated CancellationToken. Task sleep(HighResDuration d, Timekeeper* tk = nullptr); /// Return a task that, when awaited, will sleep for the specified duration. /// -/// May complete sooner that the specified duration if cancellation is -/// requested on the awaiting coroutine's associated CancellationToken. +/// May complete sooner that the specified duration if cancellation is requested +/// on the awaiting coroutine's associated CancellationToken. Task sleepReturnEarlyOnCancel( HighResDuration d, Timekeeper* tk = nullptr); diff --git a/folly/futures/HeapTimekeeper.h b/folly/futures/HeapTimekeeper.h index f1207a60159..400cc4634d2 100644 --- a/folly/futures/HeapTimekeeper.h +++ b/folly/futures/HeapTimekeeper.h @@ -30,7 +30,7 @@ namespace folly { /** - * A Timekeeper with a dedicated thread that uses manages the timeouts using a + * A Timekeeper with a dedicated thread that manages the timeouts using a * heap. Timeouts can be scheduled with microsecond resolution, though in * practice the accuracy depends on the OS scheduler's ability to wake up the * worker thread in a timely fashion.