Skip to content

Commit

Permalink
Merge pull request #248 from ReneeVandervelde/fix/completable-type
Browse files Browse the repository at this point in the history
Remove generic type declaration for Completable bindings.
  • Loading branch information
dlew authored Nov 6, 2017
2 parents 339d73d + 6e1ad0d commit 9a1e2fb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ fun <T> Maybe<T>.bindToLifecycle(owner: LifecycleOwner): Maybe<T>
fun <T> Maybe<T>.bindUntilEvent(owner: LifecycleOwner, event: Lifecycle.Event): Maybe<T>
= this.compose(AndroidLifecycle.createLifecycleProvider(owner).bindUntilEvent(event))

fun <T> Completable.bindToLifecycle(owner: LifecycleOwner): Completable
fun Completable.bindToLifecycle(owner: LifecycleOwner): Completable
= this.compose(AndroidLifecycle.createLifecycleProvider(owner).bindToLifecycle<Completable>())

fun <T> Completable.bindUntilEvent(owner: LifecycleOwner, event: Lifecycle.Event): Completable
fun Completable.bindUntilEvent(owner: LifecycleOwner, event: Lifecycle.Event): Completable
= this.compose(AndroidLifecycle.createLifecycleProvider(owner).bindUntilEvent<Completable>(event))

0 comments on commit 9a1e2fb

Please sign in to comment.