task


Description:


public Future<G> task<G> (owned TaskFunc<G> func)

Schedules the given function to execute asynchronously.

The Executor of TaskEnv.get_common_task_env will execute the function. By default, it is a WorkerPool which uses work-stealing algorithm.

Parameters:

func

a task function to execute

Returns:

a future of the execution

See also:

WorkerPool, FuncTask


Namespace: Gpseq
Package: gpseq-1.0