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.
func |
a task function to execute |
a future of the execution |