Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. fun <T> LiveData<T>.toFlowable(owner: LifecycleOwner): Flowable<T> =
  2. Flowable.fromPublisher(LiveDataReactiveStreams.toPublisher(owner, this))
  3.  
  4. fun <T> Flowable<T>.toLiveData(): LiveData<T> = LiveDataReactiveStreams.fromPublisher(this)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement