Commit f2319a6c authored by Michael Park's avatar Michael Park Committed by Facebook Github Bot

Minor comment fix and a couple of typos

Summary: `s/Future/SemiFuture/` on `SemiFuture` ctor and fixed typo `s/Timeekeeper/Timekeeper/`.

Reviewed By: yfeldblum

Differential Revision: D8290658

fbshipit-source-id: 99ddbdecc0302e620bd2b4ebce74c6080cf81aec
parent ed88a3a3
...@@ -337,7 +337,7 @@ class SemiFuture : private futures::detail::FutureBase<T> { ...@@ -337,7 +337,7 @@ class SemiFuture : private futures::detail::FutureBase<T> {
// a FutureBase pointer // a FutureBase pointer
using typename Base::value_type; using typename Base::value_type;
/// Construct a Future from a value (perfect forwarding) /// Construct a SemiFuture from a value (perfect forwarding)
template < template <
class T2 = T, class T2 = T,
typename = typename std::enable_if< typename = typename std::enable_if<
...@@ -925,11 +925,11 @@ class Future : private futures::detail::FutureBase<T> { ...@@ -925,11 +925,11 @@ class Future : private futures::detail::FutureBase<T> {
Future<T> onTimeout(Duration, F&& func, Timekeeper* = nullptr); Future<T> onTimeout(Duration, F&& func, Timekeeper* = nullptr);
/// Throw FutureTimeout if this Future does not complete within the given /// Throw FutureTimeout if this Future does not complete within the given
/// duration from now. The optional Timeekeeper is as with futures::sleep(). /// duration from now. The optional Timekeeper is as with futures::sleep().
Future<T> within(Duration, Timekeeper* = nullptr); Future<T> within(Duration, Timekeeper* = nullptr);
/// Throw the given exception if this Future does not complete within the /// Throw the given exception if this Future does not complete within the
/// given duration from now. The optional Timeekeeper is as with /// given duration from now. The optional Timekeeper is as with
/// futures::sleep(). /// futures::sleep().
template <class E> template <class E>
Future<T> within(Duration, E exception, Timekeeper* = nullptr); Future<T> within(Duration, E exception, Timekeeper* = nullptr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment