#include <Pt/Lua/Script.h>
Awaitable for async advance of a Lua Script. More...
Inherits Awaiter, and Connectable.
Public Member Functions | |
| bool | await_ready () const |
| Returns false so co_await always suspends. | |
| template<typename P > | |
| bool | await_suspend (std::coroutine_handle< P > h) |
| Starts the operation and suspends the coroutine. | |
| void | cancel () override |
| Cancels the in-flight operation. | |
Protected Member Functions | |
| void | setReady () |
| Resumes the waiting coroutine. More... | |
Wraps the beginAdvance() / endAdvance() / advanced() async pattern into a C++20 awaitable for use with co_await.
|
protectedinherited |
Call this when the asynchronous operation has completed. Typically connect a completion signal to this method.