Skip to content

Commit

Permalink
add Disposable.bindForever()
Browse files Browse the repository at this point in the history
  • Loading branch information
caodd committed Oct 8, 2018
1 parent 87803f8 commit 5368cb9
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,12 @@ fun Disposable.bindTo(owner: LifecycleOwner): Disposable {
}
})

return this
}

/**
* eliminate CheckReturnValue/CheckResult lint
*/
fun Disposable.bindForever(): Disposable {
return this
}

0 comments on commit 5368cb9

Please sign in to comment.