mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
Move futures to std
This commit is contained in:
parent
f500f3f1fb
commit
d29962f0eb
@ -181,7 +181,6 @@ pub mod task {
|
||||
pub mod spawn;
|
||||
pub mod rt;
|
||||
}
|
||||
pub mod future;
|
||||
pub mod pipes;
|
||||
|
||||
// Runtime and language-primitive support
|
||||
|
@ -53,6 +53,7 @@ pub mod cell;
|
||||
pub mod sync;
|
||||
pub mod arc;
|
||||
pub mod comm;
|
||||
pub mod future;
|
||||
|
||||
// Collections
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
use doc::ItemUtils;
|
||||
use io::ReaderUtil;
|
||||
use std::future;
|
||||
|
||||
export WriteInstr;
|
||||
export Writer;
|
||||
|
@ -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]>;
|
||||
|
@ -8,10 +8,9 @@
|
||||
|
||||
// xfail-pretty
|
||||
|
||||
use future::future;
|
||||
|
||||
extern mod std;
|
||||
use std::time;
|
||||
use std::future;
|
||||
|
||||
use pipes::recv;
|
||||
|
||||
|
@ -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]>;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user