Module extra::future

A type representing values that may be computed concurrently and operations for working with them.

Example

# 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())

Structs

Future

A type encapsulating the result of a computation which may not be complete