pub fn start_on_main_thread(argc: int, argv: **u8, main: ~fn()) -> int
Like start
but creates an additional scheduler on the current thread,
which in most cases will be the 'main' thread, and pins the main task to it.
This is appropriate for running code that must execute on the main thread, such as the platform event loop and GUI.
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).