Realm C++ SDK Version v2.2.0
|
#include <websocket.hpp>
Public Member Functions | |
virtual | ~timer ()=default |
Cancels the timer and destroys the timer instance. | |
virtual void | cancel ()=0 |
The timer object used to track a timer that was started on the event loop.
This object provides a cancel() mechanism to cancel the timer. The handler function for this timer must be called with a Status of ErrorCodes::OperationAborted error code if the timer is canceled.
Custom event loop implementations will need to create a subclass of Timer that provides access to the underlying implementation to cancel the timer.
|
pure virtual |
Cancel the timer immediately. Does nothing if the timer has already expired or been cancelled.
Implemented in realm::networking::default_timer.