Updating tests to use pipes.

This commit is contained in:
Eric Holk
2012-07-05 23:14:27 -07:00
parent fa4134611d
commit 7b03832c95
8 changed files with 76 additions and 492 deletions

View File

@@ -138,6 +138,15 @@ fn with<A,B>(future: future<A>, blk: fn(A) -> B) -> B {
}
// The pipe protocol, generated by pipec
/*
proto! future_pipe {
waiting:recv<T:send> {
completed(T) -> terminated
}
terminated { }
}
*/
mod future_pipe {
fn init<T: send>() -> (client::waiting<T>, server::waiting<T>) {
{ let (s, c) = pipes::entangle(); (c, s) }