Skip to content

Instantly share code, notes, and snippets.

@eholk
Created May 18, 2011 18:23
Show Gist options
  • Save eholk/979173 to your computer and use it in GitHub Desktop.
Save eholk/979173 to your computer and use it in GitHub Desktop.
Exchanging messages with yourself
fn main() {
let port[int] po = port();
let chan[int] ch = chan(po);
auto r <- po;
log_err r;
ch <| 42;
log_err r;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment