Move futures to std

This commit is contained in:
Brian Anderson 2012-10-23 14:20:57 -07:00
parent f500f3f1fb
commit d29962f0eb
8 changed files with 6 additions and 8 deletions

View File

@ -181,7 +181,6 @@ pub mod task {
pub mod spawn;
pub mod rt;
}
pub mod future;
pub mod pipes;
// Runtime and language-primitive support

View File

@ -53,6 +53,7 @@ pub mod cell;
pub mod sync;
pub mod arc;
pub mod comm;
pub mod future;
// Collections

View File

@ -1,5 +1,6 @@
use doc::ItemUtils;
use io::ReaderUtil;
use std::future;
export WriteInstr;
export Writer;

View File

@ -7,11 +7,10 @@
// xfail-pretty
use future::future;
extern mod std;
use std::time;
use std::arc;
use std::future;
// A poor man's pipe.
type pipe = arc::MutexARC<~[uint]>;

View File

@ -8,10 +8,9 @@
// xfail-pretty
use future::future;
extern mod std;
use std::time;
use std::future;
use pipes::recv;

View File

@ -7,11 +7,10 @@
// xfail-pretty
use future::future;
extern mod std;
use std::time;
use std::arc;
use std::future;
// A poor man's pipe.
type pipe = arc::RWARC<~[uint]>;

View File

@ -5,10 +5,10 @@
// message path.
use comm::*;
use future::future;
extern mod std;
use std::time;
use std::future;
fn thread_ring(i: uint,
count: uint,