App

An object of application. Manages all tasks executing.

Constructors

this
this(string[] args)

Members

Functions

addTask
Task addTask(Task newTask)

Adds the task.

exec
int exec()

Enters main loop.

terminate
void terminate()

Terminates all tasks forcibly. Escapes from main loop because all tasks will be deleted.

Properties

alive
alive [@property getter]

Checks if 1 or more tasks are executing.

Variables

_tasks
Task[] _tasks;
Undocumented in source.
args
string[] args;
Undocumented in source.
onThrown
ExceptionHandler onThrown;

A handler to catch the exception thrown at inside of main loop.

returnCode
int returnCode;

Status code that main function returns.

sleepDuration
uint sleepDuration;

Duration in milliseconds to sleep in each frames.

Meta