apply


Description:

[ 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();

See also:

get_common_task_env, push, pop