Represents a timeout value in milliseconds.
More...
#include <peak/common/peak_timeout.hpp>
|
| static constexpr uint64_t | INFINITE_TIMEOUT = PEAK_INFINITE_TIMEOUT |
| | The constant defining an infinite timeout.
|
| |
Represents a timeout value in milliseconds.
Use INFINITE_TIMEOUT for an infinite timeout.
- Since
- 1.1
◆ Timeout() [1/2]
| peak::core::Timeout::Timeout |
( |
uint64_t | timeout = 0 | ) |
|
|
inlinenoexcept |
◆ Timeout() [2/2]
| peak::core::Timeout::Timeout |
( |
std::chrono::milliseconds | timeout | ) |
|
|
inlinenoexcept |
◆ operator uint64_t()
| peak::core::Timeout::operator uint64_t |
( |
| ) |
const |
|
inline |
◆ INFINITE_TIMEOUT
| uint64_t peak::core::Timeout::INFINITE_TIMEOUT = PEAK_INFINITE_TIMEOUT |
|
staticconstexpr |
The constant defining an infinite timeout.
The corresponding function will only return after the operation is completed.
The documentation for this class was generated from the following file: