Skip to content

Instantly share code, notes, and snippets.

@eholk
Created July 3, 2012 23:57
Show Gist options
  • Select an option

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

Select an option

Save eholk/3044235 to your computer and use it in GitHub Desktop.
let endpoints = vec::map_consume(
endpoints,
|p| unsafe { uniquify(p.unwrap()) });
let endpoints_r = vec::view(endpoints, 0, endpoints.len());
let ready = wait_many(endpoints_r.map_r(|p| &p.header));
let mut remaining = ~[];
let mut result = none;
do vec::consume(endpoints) |i, p| { ... }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment