Hello, I have some questions about tokio, reqwest, and rust.
What I want to achieve:
I want my program to make queries to the addresses listed in the file and if that address responds to the query add the answer to Array or Vec, while doing it as fast as possible so I decided to add each query to the thread and execute those queries immediately after adding them, but I have some questions.
General questions:
I want it to cancel only the request that was processed longer than timeout.
Also I want it to wait if it doesn't have enough bandwidth for other requests.
I assume this limitation is not possible, so it should execute let's say 100 requests and after they are done execute next batch, right?
2. Why do verified_urls.sort() and other sorting methods return ()?```
The questions about variant 2 of the code:
```1. How do I fix the problem in the "urls" variable?
2. Can I use url in loop without format!("{}", url)?```
I'd be happy if you have any suggestions to make this better.