interface documentation

class twisted.internet.interfaces.IReactorWin32Events(Interface): (source)

Known implementations: twisted.internet.win32eventreactor._ThreadedWin32EventsMixin, twisted.internet.win32eventreactor.Win32Reactor

View In Hierarchy

Win32 Event API methods

Present Since10.2
Method addEvent Add a new win32 event to the event loop.
Method removeEvent Remove an event.
def addEvent(event, fd, action): (source)

Add a new win32 event to the event loop.

Parameterseventa Win32 event object created using win32event.CreateEvent() (type: object)
fdan instance of twisted.internet.abstract.FileDescriptor (type: FileDescriptor)
actiona string that is a method name of the fd instance. This method is called in response to the event. (type: str)
def removeEvent(event): (source)

Remove an event.

Parameterseventa Win32 event object added using IReactorWin32Events.addEvent (type: object)
ReturnsNone
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.