![]() |
D++ (DPP)
C++ Discord API Bot Library
|
#include <awaitable.h>
Inheritance diagram for dpp::basic_awaitable< Derived >:Public Member Functions | |
| auto | sync_wait () |
| Blocks this thread and waits for the awaitable to finish. More... | |
| template<class Rep , class Period > | |
| auto | sync_wait_for (const std::chrono::duration< Rep, Period > &duration) |
| Blocks this thread and waits for the awaitable to finish. More... | |
| template<class Clock , class Duration > | |
| auto | sync_wait_until (const std::chrono::time_point< Clock, Duration > &time) |
| Blocks this thread and waits for the awaitable to finish. More... | |
Protected Member Functions | |
| template<bool Timed> | |
| auto | sync_wait_impl (auto &&do_wait) |
| Implementation for sync_wait. This is code used by sync_wait, sync_wait_for, sync_wait_until. More... | |
|
inline |
Blocks this thread and waits for the awaitable to finish.
|
inline |
Blocks this thread and waits for the awaitable to finish.
| duration | Maximum duration to wait for |
|
inlineprotected |
Implementation for sync_wait. This is code used by sync_wait, sync_wait_for, sync_wait_until.
| Timed | Whether the wait function times out or not |
| do_wait | Function to do the actual wait on the cv |
|
inline |
Blocks this thread and waits for the awaitable to finish.
| time | Maximum time point to wait for |