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