Join Slack
Powered by
You don't await coroutines, do you? Assuming you a...
# coroutines
d
diesieben07
12/13/2017, 12:39 AM
You don't await coroutines, do you? Assuming you are talking about `Deferred`: If you have a
List<Deferred<T>>
you can do
list.map { it.await() }
, which will resolve all of them and give you a list of results.
2
Views
Open in Slack
Previous
Next