From 0c9107a9631147be5ad78a0263c599a2e3e6462b Mon Sep 17 00:00:00 2001 From: Jan Seeger Date: Wed, 22 May 2024 12:54:27 +0200 Subject: [PATCH] Remove WhileSubscribed receiver --- .../main/kotlin/de/sipgate/dachlatten/flow/SharingStartedExt.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dachlatten-flow/src/main/kotlin/de/sipgate/dachlatten/flow/SharingStartedExt.kt b/dachlatten-flow/src/main/kotlin/de/sipgate/dachlatten/flow/SharingStartedExt.kt index 61e4f8c..e8404a6 100644 --- a/dachlatten-flow/src/main/kotlin/de/sipgate/dachlatten/flow/SharingStartedExt.kt +++ b/dachlatten-flow/src/main/kotlin/de/sipgate/dachlatten/flow/SharingStartedExt.kt @@ -3,6 +3,6 @@ package de.sipgate.dachlatten.flow import kotlinx.coroutines.flow.SharingStarted import kotlin.time.Duration -fun SharingStarted.WhileSubscribed(duration: Duration): SharingStarted { +fun WhileSubscribed(duration: Duration): SharingStarted { return SharingStarted.WhileSubscribed(stopTimeoutMillis = duration.inWholeMilliseconds) }