2012-08-06 16:34:53 -05:00
|
|
|
proto! stream {
|
|
|
|
stream:send<T:send> {
|
|
|
|
send(T) -> stream<T>
|
2012-07-16 17:12:53 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let (bc, _bp) = stream::init();
|
|
|
|
|
2012-08-03 14:48:14 -05:00
|
|
|
stream::client::send(bc, ~"abc");
|
2012-07-16 17:12:53 -05:00
|
|
|
}
|