Engine

Engine

An instance of this represents an engine that can, at any time, handle the delivery of new events, trigger the correct signal handlers for the respective events, remove signal handlers, add signal handlers, among many other things

Constructors

this
this()
Undocumented in source.

Members

Functions

addQueue
void addQueue(ulong id)

Creates a new queue with the given id and then adds it

addSignalHandler
void addSignalHandler(Signal e)

Adds the given Signal handler

findQueue
Queue findQueue(ulong id)

Given an id, this will return the Queue associated with said id

getSignalsForEvent
Signal[] getSignalsForEvent(Event e)

returns all signal(s) responsible for handling the type of Event provided

getTypes
ulong[] getTypes()
Undocumented in source. Be warned that the author may not have intended to support it.
push
void push(Event e)

push(Event e)

run
void run()

Event loop

setSleep
void setSleep(Duration time)

Set the event loop sleep time

Meta