Module parallel

Source
Expand description

Parallel for each and map using tokio tasks.

This avoid the problem of sleeping threads with mimalloc when using rayon in combination with tokio. It also avoid having multiple thread pools. see also https://pwy.io/posts/mimalloc-cigarette/

Functionsยง

for_each
for_each_owned
map_collect
map_collect_owned
try_for_each
try_for_each_mut
try_for_each_owned