Function green::start
pub fn start(argc: int, argv: **u8, event_loop_factory: fn() -> ~EventLoop<Send>, main: proc()) -> int
Set up a default runtime configuration, given compiler-supplied arguments.
This function will block until the entire pool of M:N schedulers have exited. This function also requires a local task to be available.
Arguments
argc
&argv
- The argument vector. On Unix this information is used by os::args.main
- The initial procedure to run inside of the M:N scheduling pool. Once this procedure exits, the scheduling pool will begin to shut down. The entire pool (and this function) will only return once all child tasks have finished executing.
Return value
The return value is used as the process return code. 0 on success, 101 on error.