https://kotlinlang.org logo
#coroutines
Title
# coroutines
m

mfulton26

03/07/2017, 7:04 PM
is there any type of
Iterable<T>.forEachConcurrently
?
e

elizarov

03/07/2017, 7:14 PM
What is it supposed to do? And how is it supposed to integrate with an arbitrary (potentially non-cocurrent) iterable?
Note that you can do:
iterable.forEach { launch(CommonPool) { ... } }
i'm not sure if that is what you want or is it something else?
m

mfulton26

03/07/2017, 8:44 PM
Yes, I think a
forEach
with
launch
is about what I'm looking for. I'll take a closer look. Thanks.
3 Views