Skip to content

Commit

Permalink
refactor(takeUntil): change notifier type to Flow<Any?> (#112)
Browse files Browse the repository at this point in the history
* Flow<*>

* Flow<Any?>
  • Loading branch information
hoc081098 authored Jul 15, 2022
1 parent dbba205 commit 99c375d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commonMain/kotlin/com/hoc081098/flowext/takeUntil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import kotlinx.coroutines.launch
* @param notifier The [Flow] whose first emitted value or complete event
* will cause the output [Flow] of [takeUntil] to stop emitting values from the source [Flow].
*/
public fun <T, R> Flow<T>.takeUntil(notifier: Flow<R>): Flow<T> = flow {
public fun <T> Flow<T>.takeUntil(notifier: Flow<Any?>): Flow<T> = flow {
try {
coroutineScope {
val job = launch(start = CoroutineStart.UNDISPATCHED) {
Expand Down

0 comments on commit 99c375d

Please sign in to comment.