stable subs

This commit is contained in:
Vitor Pamplona
2026-03-26 15:21:08 -04:00
parent 9171209d44
commit 5d256bab2c
2 changed files with 4 additions and 0 deletions
@@ -20,6 +20,7 @@
*/
package com.vitorpamplona.amethyst.commons.relayClient.composeSubscriptionManagers
import androidx.compose.runtime.Stable
import java.util.concurrent.ConcurrentHashMap
import kotlin.collections.forEach
@@ -28,6 +29,7 @@ import kotlin.collections.forEach
* to relays. There may be multiple duplications in these
* subscriptions since we do not control when screens are removed.
*/
@Stable
abstract class ComposeSubscriptionManager<T> :
ComposeSubscriptionManagerControls,
Subscribable<T> {
@@ -20,6 +20,7 @@
*/
package com.vitorpamplona.amethyst.commons.relayClient.composeSubscriptionManagers
import androidx.compose.runtime.Stable
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.flow.Flow
@@ -36,6 +37,7 @@ import java.util.concurrent.ConcurrentHashMap
* also allows the subscription itself to change over time as a
* flow, which trigger an update on the relay subscriptions
*/
@Stable
abstract class MutableComposeSubscriptionManager<T : MutableQueryState>(
val scope: CoroutineScope,
) : ComposeSubscriptionManagerControls {