Hmm. Maybe I messed up the generics. I will try it...
# getting-started
j
Hmm. Maybe I messed up the generics. I will try it again
k
Did it work?
j
This worked:``` val updatesToSend = lock.write { ImmutableList.copyOf(updateQueue).also { updateQueue.removeAll({true}) } } ```
there were missing "{" around the true
Thanks a lot!
k
No problem, glad to hear you got it working! It is a bit strange that the
removeAll
method doesn't remove everything though 🙂
j
Yep. I should use "clear" instead 😉