Aller au contenu
Bienvenue sur la nouvelle documentation de CppUtils !

Matcher asserting that an asynchronous future completes with a specific value within an allotted duration.

ExpectedValueType expectedValue;
TimeoutDuration timeout {std::chrono::ceil<TimeoutDuration>(std::chrono::milliseconds{1'000})};
constexpr CompletesWithMatcher::CompletesWithMatcher( ExpectedValueType value, TimeoutDuration timeoutDuration = std::chrono::ceil<TimeoutDuration>(std::chrono::milliseconds{1'000})) noexcept;
[[nodiscard]] constexpr auto CompletesWithMatcher::operator()(Chrono::Duration auto newTimeout) const noexcept;