execute


Description:

public void execute (owned VoidTaskFunc task)

Executes a void task in the thread pool.

Example:

    var pool = WorkerPool.withDefault ();
pool.execute (() => {
print ("running in background\n");
});

Parameters:

task

the task to execute.