Skip to content

Instantly share code, notes, and snippets.

@eholk
Created July 21, 2011 23:38
Show Gist options
  • Select an option

  • Save eholk/1098511 to your computer and use it in GitHub Desktop.

Select an option

Save eholk/1098511 to your computer and use it in GitHub Desktop.
fn start(chan[@int] c) {
c <| @42;
}
fn main() {
auto p = port();
auto child = spawn start(chan(p));
auto c; p |> c;
log_err *c;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment