Function EventListener.queueTask

Queues a task event.

void queueTask(
  scope void delegate(Object, void*) callback,
  void* payload = null,
  int domain = -1
);

Parameters

NameDescription
callback A delegate that should be executed.
payload Optional pointer to be passed with the event.
domain Message domain/communication layer (ITC or main-thread).