Skip to content

Instantly share code, notes, and snippets.

@userqq
Created December 11, 2017 18:11
Show Gist options
  • Save userqq/fc230afcf4eb6af65d6add8b0d4d2d56 to your computer and use it in GitHub Desktop.
Save userqq/fc230afcf4eb6af65d6add8b0d4d2d56 to your computer and use it in GitHub Desktop.
let loop = Loop::new();
for i in 0..256 {
start_request(loop);
}
fn start_request(loop: Loop) {
Request::new(loop)
.get('http://google.com')
.then(|response| {
start_request(loop);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment