#include <Pt/Db/Connection.h>
Base awaiter for a pending connection operation.
Inherits Awaiter, and Connectable.
Inherited by AsyncClose, AsyncExecute, AsyncOpen, AsyncPing, and AsyncSelect.
Protected Member Functions | |
| void | onCancel () override |
| Aborts the in-flight operation. | |
| void | setReady () |
| Resumes the waiting coroutine. | |
| virtual void | onBegin ()=0 |
| Starts the asynchronous operation. | |
|
overrideprotectedvirtual |
Called from Awaiter::cancel() when the waiting task or generator is cancelled.
Implements Awaiter.
|
protectedinherited |
Call this when the asynchronous operation has completed. Typically connect a completion signal to this method.
|
protectedpure virtualinherited |
Subscribe to completion and begin the work. The coroutine remains suspended until Awaiter::setReady() is called.
Implemented in AsyncYield.