Skip to content
Welcome to the new CppUtils documentation!

Matcher asserting that an asynchronous future or reactive primitive completes within an allotted duration.

TimeoutDuration timeout {std::chrono::ceil<TimeoutDuration>(std::chrono::milliseconds{1'000})};
constexpr CompletesMatcher::CompletesMatcher() = default;
constexpr explicit CompletesMatcher::CompletesMatcher(TimeoutDuration timeoutDuration) noexcept;
[[nodiscard]] constexpr auto CompletesMatcher::operator()(Chrono::Duration auto newTimeout) const noexcept;
[[nodiscard]] constexpr auto CompletesMatcher::with(auto&& expectedValue) const;