A type representing values that may be computed concurrently and operations for working with them.
# fn fib(n: uint) -> uint {42};
# fn make_a_sandwich() {};
let mut delayed_fib = extra::future::spawn (|| fib(5000) );
make_a_sandwich();
printfln!("fib(5000) = %?", delayed_fib.get())
Future | A type encapsulating the result of a computation which may not be complete |
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
).