traits_futures.i_event_loop module
Interface for toolkit-specific event-loop details.
-
class traits_futures.i_event_loop.IEventLoop[source]
Bases: ABC
Interface for toolkit-specific event-loop details.
An instance of this class provides consistent mechanisms to get
objects related to a particular event loop (for example, that provided
by a GUI toolkit).
-
abstract helper()[source]
Return a new event loop helper.
- Returns:
event_loop_helper
- Return type:
IEventLoopHelper
-
abstract pingee(on_ping)[source]
Return a new pingee.
- Parameters:
on_ping – Zero-argument callable, called on the main thread (under a running
event loop) as a result of each ping sent. The return value of the
callable is ignored.
- Returns:
pingee
- Return type:
IPingee