Skip to content

Commit 2282e5a

Browse files
committed
Web Events. Deprecate subscribe
* API doesn't respect Kotlin Couroutenes conventions * Can be replaced with API provided by Kotlin Couroutenes
1 parent 42cf99a commit 2282e5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlin-web/src/webMain/kotlin/web/events/EventFlow.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import kotlinx.coroutines.flow.Flow
55
import kotlinx.coroutines.flow.launchIn
66
import kotlinx.coroutines.flow.onEach
77

8-
// subscribe
8+
@Deprecated("Use `collect` or `launchIn` instead")
99
suspend fun <E : Event> Flow<E>.subscribe(
1010
handler: (E) -> Unit,
1111
): Job {

0 commit comments

Comments
 (0)