Created
December 11, 2017 18:11
-
-
Save userqq/fc230afcf4eb6af65d6add8b0d4d2d56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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