Skip to content

Instantly share code, notes, and snippets.

@nikomatsakis
Created September 14, 2012 22:00
Show Gist options
  • Save nikomatsakis/3725187 to your computer and use it in GitHub Desktop.
Save nikomatsakis/3725187 to your computer and use it in GitHub Desktop.
fn main() {
let (ch, po) = pipes::stream();
do task::spawn {
...
ch.send(22);
}
let r = po.recv();
assert r == 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment