pub fn unkillable<U>(f: &fn() -> U) -> U
Temporarily make the task unkillable
do task::unkillable {
// detach / deschedule / destroy must all be called together
rustrt::rust_port_detach(po);
// This must not result in the current task being killed
task::deschedule();
rustrt::rust_port_destroy(po);
}
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
).