Add std::comm with DuplexStream
This commit is contained in:
parent
91622d0310
commit
924e787119
11 changed files with 251 additions and 169 deletions
|
@ -420,12 +420,11 @@ mod tests {
|
|||
let v = ~[1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
||||
let arc_v = arc::arc(v);
|
||||
|
||||
let p = port();
|
||||
let c = chan(p);
|
||||
let (c, p) = pipes::stream();
|
||||
|
||||
do task::spawn() {
|
||||
let p = port();
|
||||
c.send(chan(p));
|
||||
let p = pipes::port_set();
|
||||
c.send(p.chan());
|
||||
|
||||
let arc_v = p.recv();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue