2012-08-22 18:10:48 -07:00
|
|
|
proto! stream (
|
2012-09-07 14:52:28 -07:00
|
|
|
stream:send<T:Send> {
|
2012-08-06 14:34:53 -07:00
|
|
|
send(T) -> stream<T>
|
2012-07-16 15:12:53 -07:00
|
|
|
}
|
2012-08-22 18:10:48 -07:00
|
|
|
)
|
2012-07-16 15:12:53 -07:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let (bc, _bp) = stream::init();
|
|
|
|
|
2012-08-03 12:48:14 -07:00
|
|
|
stream::client::send(bc, ~"abc");
|
2012-07-16 15:12:53 -07:00
|
|
|
}
|