diff --git a/rxlifecycle-android-lifecycle-kotlin/src/main/java/com/trello/rxlifecycle2/android/lifecycle/kotlin/rxlifecycle.kt b/rxlifecycle-android-lifecycle-kotlin/src/main/java/com/trello/rxlifecycle2/android/lifecycle/kotlin/rxlifecycle.kt index 1eff216..cb976fe 100644 --- a/rxlifecycle-android-lifecycle-kotlin/src/main/java/com/trello/rxlifecycle2/android/lifecycle/kotlin/rxlifecycle.kt +++ b/rxlifecycle-android-lifecycle-kotlin/src/main/java/com/trello/rxlifecycle2/android/lifecycle/kotlin/rxlifecycle.kt @@ -43,8 +43,8 @@ fun Maybe.bindToLifecycle(owner: LifecycleOwner): Maybe fun Maybe.bindUntilEvent(owner: LifecycleOwner, event: Lifecycle.Event): Maybe = this.compose(AndroidLifecycle.createLifecycleProvider(owner).bindUntilEvent(event)) -fun Completable.bindToLifecycle(owner: LifecycleOwner): Completable +fun Completable.bindToLifecycle(owner: LifecycleOwner): Completable = this.compose(AndroidLifecycle.createLifecycleProvider(owner).bindToLifecycle()) -fun Completable.bindUntilEvent(owner: LifecycleOwner, event: Lifecycle.Event): Completable +fun Completable.bindUntilEvent(owner: LifecycleOwner, event: Lifecycle.Event): Completable = this.compose(AndroidLifecycle.createLifecycleProvider(owner).bindUntilEvent(event))