Class EventLoop

Interface of event loop.

Inherits from

  • Object (base class)

Methods

Name Description
callAt Arrange for the callback to be called at the given absolute timestamp when (an int or float), using the same time reference as time().
callExceptionHandler Call the current event loop's exception handler.
callLater Arrange for the callback to be called after the given delay.
callSoon Arrange for a callback to be called as soon as possible.
callSoonThreadSafe Like callSoon(), but thread safe.
close Close the event loop. The loop must not be running.
createConnection Create a streaming transport connection to a given Internet host and
createDatagramEndpoint Create datagram connection: socket family AddressFamily.INET or AddressFamily.INET6 depending on host (or family if specified), socket type SocketType.DGRAM.
createServer A coroutine which creates a TCP server bound to host and port.
createTask Schedule the execution of a fiber object: wrap it in a future.
createUnixConnection Create UNIX connection: socket family AddressFamily.UNIX, socket type SocketType.STREAM. The UNIX socket family is used to communicate between processes on the same machine efficiently.
createUnixServer Similar to EventLoop.createServer(), but specific to the socket family AddressFamily.UNIX.
defaultExceptionHandler Default exception handler.
isClosed
isRunning
runForever Run until stop() is called.
runUntilComplete Run until future is done.
setExceptionHandler Set handler as the new event loop exception handler.
stop Stop running the event loop.
time Return the current time according to the event loop’s internal clock.

Authors

Dragos Carp

Copyright

© 2015-2016 Dragos Carp

License

Boost Software License - Version 1.0