6#include <yaclib_std/condition_variable>
7#include <yaclib_std/mutex>
13 using Token = std::unique_lock<yaclib_std::mutex>;
26 template <
typename Clock,
typename Duration>
38 bool _is_ready =
false;
std::unique_lock< yaclib_std::mutex > Token
void Wait(Token &token) noexcept
bool Wait(Token &token, const std::chrono::time_point< Clock, Duration > &timeout_time) noexcept
Contract< V, E > MakeContract()
Creates related future and promise.