run


Description:


[ Version ( since = "0.3.0-beta" ) ]
public Future<void*> run (owned VoidTaskFunc 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.

This method is the same as task but this accepts a VoidTaskFunc which has void return type.

Parameters:

func

a task function to execute

Returns:

a future of the execution

See also:

WorkerPool, FuncTask


Namespace: Gpseq
Package: gpseq-1.0