[ Version ( since = "0.2.0-alpha" ) ]
public static void apply (TaskEnv task_env, VoidFunc func)
Runs the function with the given task environment as the common task environment.
This is equivalent to:
TaskEnv.push(task_env);
func();
TaskEnv.pop();