python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
tokio::select! but for a Vec of futures
I have a Vec of futures which I want to execute concurrently (but not necessarily in parallel). Basically, I'm looking for some kind of select function that is similar to tokio::select! but takes a co...
Florian Brucker
Votes: 0
Answers: 2
Cannot use `form_urlencoded::Serializer` in `async` function
I have a hyper server set up more or less exactly as the third example here: https://docs.rs/hyper/0.14.16/hyper/server/index.html . My version of the handle function calls some other async functions,...
BallpointBen
Votes: 0
Answers: 1
Rust tokio alternative to fold and map to run a function concurrently with different inputs
I need a way to run the same function many times with different inputs.
And since the function depends on a slow web API, I need to run it concurrently and collect the results in one variable.
I use t...

PFA hard
Votes: 0
Answers: 1
Call stored closure from an async closure in rust
I have a closure that mutates variables designed outside of it. How would I go about calling this closure that modifies the state from inside an async scope?
I have the following code (abstracted, to ...
SnailsSeveral
Votes: 0
Answers: 1