Learn how to evaluate and integrate the VNC SDK

We're here if you need help.

EventLoop

Method Summary

Modifier and Type Method and Description

run_on_loop(runnable, args=(), kwargs={})

Schedules a task for immediate execution on the SDK’s thread.

run()

Runs the event loop until vncsdk.EventLoop.stop() is called.

bool

should_stop()

Returns a boolean flag indicating whether the event loop should stop, and immediately clears it.

stop()

Stops the event loop previously started with vncsdk.EventLoop.run(), causing vncsdk.EventLoop.run() to return promptly.

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(), causing vncsdk.EventLoop.run() to return promptly.

For more information, see vnc_EventLoop_stop().

×