The OpenD Programming Language

EventLoop

If you want to get more control over the event loop, you can use this.

Typically though, you can just call SimpleWindow.eventLoop which forwards to EventLoop.get.run.

Constructors

this
this(long pulseTimeout, void delegate() handlePulse)

Construct an application-global event loop for yourself

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Postblit

A postblit is present on this object, but not explicitly documented in the source.

Members

Functions

exit
void exit()

Exits the event loop, but allows you to reenter it again later (in contrast with quitApplication, which tries to terminate the program)

run
int run(bool delegate() whileCondition)

Runs the event loop until the whileCondition, if present, returns false

Static functions

get
EventLoop get()

Gets a reference to an existing event loop

Meta