Function green::run
pub fn run(event_loop_factory: fn() -> ~EventLoop<Send>, main: proc()) -> int
Execute the main function in a pool of M:N schedulers.
Configures the runtime according to the environment, by default using a task scheduler with the same number of threads as cores. Returns a process exit code.
This function will not return until all schedulers in the associated pool have returned.