proxygen
|
Public Member Functions | |
Future< Unit > | after (Duration) override |
template<class Clock > | |
Future< Unit > | at (std::chrono::time_point< Clock >) |
Public Member Functions inherited from folly::Timekeeper | |
virtual | ~Timekeeper ()=default |
template<class Clock > | |
Future< Unit > | at (std::chrono::time_point< Clock > when) |
Public Attributes | |
std::vector< Promise< Unit > > | promises_ |
Definition at line 258 of file ServiceTest.cpp.
Returns a future that will complete after the given duration with the elapsed time. Exceptional errors can happen but they must be exceptional. Use the steady (monotonic) clock.
The consumer thread may cancel this Future to reclaim resources.
This future probably completes on the timer thread. You should almost certainly follow it with a via() call or the accuracy of other timers will suffer.
Implements folly::Timekeeper.
Definition at line 260 of file ServiceTest.cpp.
References f, folly::Promise< T >::getFuture(), and folly::gen::move.
|
inline |
Definition at line 267 of file ServiceTest.cpp.
References f, folly::Promise< T >::getFuture(), and folly::gen::move.
Definition at line 273 of file ServiceTest.cpp.
Referenced by wangle::TEST().