1
Fork 0

std: Rename Chan/Port types and constructor

* Chan<T> => Sender<T>
* Port<T> => Receiver<T>
* Chan::new() => channel()
* constructor returns (Sender, Receiver) instead of (Receiver, Sender)
* local variables named `port` renamed to `rx`
* local variables named `chan` renamed to `tx`

Closes #11765
This commit is contained in:
Alex Crichton 2014-03-09 14:58:32 -07:00
parent e86e1d88b2
commit 7858065113
117 changed files with 1735 additions and 1890 deletions

View file

@ -61,7 +61,7 @@ pub use vec::{MutableVector, MutableTotalOrdVector};
pub use vec::{Vector, VectorVector, CloneableVector, ImmutableVector};
// Reexported runtime types
pub use comm::{Port, Chan};
pub use comm::{channel, Sender, Receiver};
pub use task::spawn;
// Reexported statics