Shabinder Singh

Results 54 comments of Shabinder Singh

Spotiflyer is discontinued, please install [Soundbound](https://soundbound.shabinder.in/install) with our new **plugins**. - For reporting Issues or Requesting Features in Soundbound, you can visit its [helpdesk](https://soundbound.shabinder.in/helpdesk). - Also you can join our...

Spotiflyer is discontinued, please install [Soundbound](https://soundbound.shabinder.in/install) with our new **plugins**. - For reporting Issues or Requesting Features in Soundbound, you can visit its [helpdesk](https://soundbound.shabinder.in/helpdesk). - Also you can join our...

Would love support for this.

``` Fatal Exception: java.util.ConcurrentModificationException: at java.util.ArrayList$Itr.next(ArrayList.java:860) at co.touchlab.stately.collections.ConcurrentMutableIterator$next$1.invoke(ConcurrentMutableIterator.java:11) at co.touchlab.stately.collections.ConcurrentMutableIterator.next(ConcurrentMutableIterator.java:16) at kotlinx.collections.immutable.implementations.immutableList.PersistentVectorBuilder.copyToBuffer(PersistentVectorBuilder.java:12) at kotlinx.collections.immutable.implementations.immutableList.PersistentVectorBuilder.addAll(PersistentVectorBuilder.java:11) at kotlinx.collections.immutable.implementations.immutableList.SmallPersistentVector.addAll(SmallPersistentVector.java:17) at kotlinx.collections.immutable.ExtensionsKt.plus(Extensions.kt:5) at kotlinx.collections.immutable.ExtensionsKt.toPersistentList(Extensions.kt:4) at kotlinx.collections.immutable.ExtensionsKt.toImmutableList(Extensions.kt:2) at in.shabinder.shared.screens.home.discover.search.store.SoundBoundSearchStoreFactory$ExecutorImpl$search$processEmission$1.invokeSuspend(SoundBoundSearchStoreFactory.java:69) at in.shabinder.shared.screens.home.discover.search.store.SoundBoundSearchStoreFactory$ExecutorImpl$search$processEmission$1.invoke(SoundBoundSearchStoreFactory.java:21) at in.shabinder.shared.screens.home.discover.search.store.SoundBoundSearchStoreFactory$ExecutorImpl$search$processEmission$1.invoke(SoundBoundSearchStoreFactory.java:21) ```

Version: statelyVersion = "2.0.0-rc1" statelyIsoVersion = "2.0.0-rc1" ConcurrentMutableList -> ImmutableList ``` fun Iterable.toImmutableList(): ImmutableList = this as? ImmutableList ?: this.toPersistentList() ``` from kotlinx.collections.immutable

Yeah, will do, but wont resolve this issue I believe as u said as well. How would it be possible, ConcurrentMutableList synchronised isnt working/holding up as one would expect ?...

Because the synchronisation lock is always applied on new instance of ArrayList Iterator, r8? instead shouldn't we use the list itself as a synchronizable lock? If this is the case,...

Above Snippet is not concurrent right 👀 and being accessed and modifed across multiple threads 👀

> copy the list and return an iterator to that. In some of my use-cases, above is a deal-breaker since list is too extensive and copying will hurt performance, since...