|
fiber
|
Awaitable that waits for a function to return true. More...
#include <Await.hpp>
Public Member Functions | |
| AwaitCallable (bool expected, const Callable &callable) | |
| constexpr bool | await_ready () const noexcept |
| Returns the value of the callable. | |
| constexpr void | await_resume () |
| no operation. For coroutine machinery. | |
| template<class Handle> | |
| constexpr void | await_suspend (const Handle &handle) noexcept |
| no operation. suspends always. For coroutine machinery. | |
Awaitable that waits for a function to return true.
Useful if you need to wait for an condition or register value
Example:
| Callable | a callable that returns true |
|
inline |
|
inlineconstexprnoexcept |
Returns the value of the callable.
|
inlineconstexpr |
no operation. For coroutine machinery.
|
inlineconstexprnoexcept |
no operation. suspends always. For coroutine machinery.