Function green::run[src]
pub fn run(event_loop_factory: fn() -> Box<EventLoop + Send>, main: proc(): Send) -> 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.