Learn how to evaluate and integrate the VNC SDK
EventLoop¶
Method Summary¶
Modifier and Type | Method and Description |
---|---|
Schedules a task for immediate execution on the SDK’s thread. |
|
Runs the event loop until |
|
bool |
Returns a boolean flag indicating whether the event loop should stop, and immediately clears it. |
Stops the event loop previously started with |
Static methods¶
-
static
vncsdk.EventLoop.
run_on_loop
(runnable, args=(), kwargs={})¶ Schedules a task for immediate execution on the SDK’s thread. The task will then be run during the current or next invocation of
vncsdk.EventLoop.run()
.Parameters: - runnable (callable) – A function or callable object to invoke on the SDK’s loop
- args (tuple) – An optional argument tuple to pass to the callable
- kwargs (dict) – An optional dictionary of named keyword arguments to pass to the callable
-
vncsdk.EventLoop.
run
()¶ Runs the event loop until
vncsdk.EventLoop.stop()
is called.For more information, see
vnc_EventLoop_run()
.
-
vncsdk.EventLoop.
should_stop
()¶ Returns a boolean flag indicating whether the event loop should stop, and immediately clears it.
For more information, see
vnc_EventLoop_shouldStop()
.Return type: bool
-
vncsdk.EventLoop.
stop
()¶ Stops the event loop previously started with
vncsdk.EventLoop.run()
, causingvncsdk.EventLoop.run()
to return promptly.For more information, see
vnc_EventLoop_stop()
.