Hi. I'm batching some data in a coroutine and sending the list over a channel. I'm assuming it'll be a data race if I clear this list after sending. Is there a method which return all the elements from the list and clears it?
r
Ruckus
04/15/2019, 6:19 PM
#C1CFAFJSK
g
gildor
04/16/2019, 1:21 AM
Just send immutable list or make a copy before senidng by calling toList