asynchronous.events

Event loop and event loop policy.

Members

Aliases

DefaultEventLoopPolicy
alias DefaultEventLoopPolicy = LibasyncEventLoopPolicy
Undocumented in source.
ExceptionHandler
alias ExceptionHandler = void delegate(EventLoop, ExceptionContext)
Undocumented in source.
Protocol
alias Protocol = asynchronous.protocols.Protocol
Undocumented in source.

Classes

Callback
class Callback(Dg, Args...)

A callback wrapper object returned by $(D_PSYMBOL EventLoop.callSoon), $(D_PSYMBOL EventLoop.callSoonThreadSafe), $(D_PSYMBOL EventLoop.callLater), and $(D_PSYMBOL EventLoop.callAt).

EventLoop
class EventLoop

Interface of event loop.

EventLoopPolicy
class EventLoopPolicy

Interface of policy for accessing the event loop.

ServerImpl
class ServerImpl
Undocumented in source.

Functions

callback
auto callback(EventLoop eventLoop, Dg dg, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
getEventLoop
EventLoop getEventLoop()

Equivalent to calling getEventLoopPolicy.getEventLoop.

getEventLoopPolicy
EventLoopPolicy getEventLoopPolicy()

Get the current event loop policy.

newEventLoop
EventLoop newEventLoop()

Equivalent to calling getEventLoopPolicy.newEventLoop.

setEventLoop
void setEventLoop(EventLoop loop)

Equivalent to calling getEventLoopPolicy.setEventLoop(loop).

setEventLoopPolicy
void setEventLoopPolicy(EventLoopPolicy policy)

Set the current event loop policy.

Interfaces

CallbackHandle
interface CallbackHandle
Undocumented in source.
Server
interface Server

Interface server returned by createServer().

SslContext
interface SslContext
Undocumented in source.

Structs

ExceptionContext
struct ExceptionContext

Exception conxtext for event exceptions

Meta

License

Boost Software License - Version 1.0

Authors

Dragos Carp