task


Description:


public Future<G> task<G> (owned Task<G> task) throws ThreadError

Schedules a task to execute asynchroniously. Internally one of threads from pool will execute the task.

Note:

There is limited number of threads unless environment variable GEE_NUM_THREADS is set to -1. It is not advised to call I/O or block inside the taks. If necessary it is possible to create a new one by anyther call.

Parameters:

task

Task to be executed

Returns:

Future value returned by task

Since:

0.11.0

See also:

async_task


Namespace: Gee
Package: gee-0.8