-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loop? #4
Comments
That example should work just fine. Are you sure that you are then running core.run(f).unwrap(); This is the way futures work -- you first sort of "set up" a computation, and then execute it. That said, this is a somewhat weird way of doing things. Do you actually want an infinite loop in there? Why not something like: core.run(client.goto("http://url.tld")).unwrap();
while let Ok(e) = core.run(client.by_selector("element")) {
// ...
} |
I got it working with your explanation. Thank you! |
Is there any way to build a loop with the client?
This does not work:
But I am pretty sure there is some way to use futures to create a loop, I just don't really know where to start...
The text was updated successfully, but these errors were encountered: