stable subs
This commit is contained in:
+2
@@ -20,6 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.vitorpamplona.amethyst.commons.relayClient.composeSubscriptionManagers
|
package com.vitorpamplona.amethyst.commons.relayClient.composeSubscriptionManagers
|
||||||
|
|
||||||
|
import androidx.compose.runtime.Stable
|
||||||
import java.util.concurrent.ConcurrentHashMap
|
import java.util.concurrent.ConcurrentHashMap
|
||||||
import kotlin.collections.forEach
|
import kotlin.collections.forEach
|
||||||
|
|
||||||
@@ -28,6 +29,7 @@ import kotlin.collections.forEach
|
|||||||
* to relays. There may be multiple duplications in these
|
* to relays. There may be multiple duplications in these
|
||||||
* subscriptions since we do not control when screens are removed.
|
* subscriptions since we do not control when screens are removed.
|
||||||
*/
|
*/
|
||||||
|
@Stable
|
||||||
abstract class ComposeSubscriptionManager<T> :
|
abstract class ComposeSubscriptionManager<T> :
|
||||||
ComposeSubscriptionManagerControls,
|
ComposeSubscriptionManagerControls,
|
||||||
Subscribable<T> {
|
Subscribable<T> {
|
||||||
|
|||||||
+2
@@ -20,6 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.vitorpamplona.amethyst.commons.relayClient.composeSubscriptionManagers
|
package com.vitorpamplona.amethyst.commons.relayClient.composeSubscriptionManagers
|
||||||
|
|
||||||
|
import androidx.compose.runtime.Stable
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.Job
|
import kotlinx.coroutines.Job
|
||||||
import kotlinx.coroutines.flow.Flow
|
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
|
* also allows the subscription itself to change over time as a
|
||||||
* flow, which trigger an update on the relay subscriptions
|
* flow, which trigger an update on the relay subscriptions
|
||||||
*/
|
*/
|
||||||
|
@Stable
|
||||||
abstract class MutableComposeSubscriptionManager<T : MutableQueryState>(
|
abstract class MutableComposeSubscriptionManager<T : MutableQueryState>(
|
||||||
val scope: CoroutineScope,
|
val scope: CoroutineScope,
|
||||||
) : ComposeSubscriptionManagerControls {
|
) : ComposeSubscriptionManagerControls {
|
||||||
|
|||||||
Reference in New Issue
Block a user