Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 40
How do you limit an async crawler to 50 concurrent HTTP requests?
A
A std Mutex around the HTTP client
B
A tokio::sync::Semaphore with 50 permits (or stream.buffer_unordered(50))
C
thread::sleep between requests
D
Spawn all requests at once