pub fn spawn_sched(mode: SchedMode, f: ~fn())
Creates a new task on a new or existing scheduler
When there are no more tasks to execute the
scheduler terminates. *
*
In manual threads mode the number of threads requested must be
greater than zero.
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
).