Alex6323 / netzwerk

Prototyping an extendable networking crate.
Apache License 2.0
0 stars 0 forks source link

Processing events concurrently (e.g. writing to different streams) #5

Open samuel-rufi opened 4 years ago

samuel-rufi commented 4 years ago

To process multiple events from a stream concurrently, we should consider to use for_each_concurrent and try_for_each_concurrent were it´s desired. For example, this could be used in conns::listen() for writing concurrently data to the streams/peers.

https://rust-lang.github.io/async-book/05_streams/02_iteration_and_concurrency.html

Alex6323 commented 4 years ago

Definitely on my todo list. Great point!