Thank you for such a fast response!
-
I didn't realize that you could have multiple trait bounds like that. I understand changing
I: Iterator<..>
toI: IntoIterator<..>
. If the inputI: IntoIterator<..>
is already bound by Send, why is it necessary to additionally bindI::IntoIter
to Send? -
In my implementation, the Runner has all sorts of configuration for the http client, throttling (because async was borking my company's dev servers), etc.. and the processor implementation runs a long chain of requests. I was aiming for each processor request to run in it's own Tokio task. Does swapping the
spawn()
andfor_each()
allow this? Are there any downsides to running all the processes in a single task?