Updating tests to use pipes.
This commit is contained in:
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user