Skip to content

cloudshooterhuman/RxCoroutinesMentalMapping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 

Repository files navigation

RxCoroutinesTerminology

Mental Mapping between Rx and Coroutines.

RxJava Coroutines
Single/Completable/Maybe suspend function
Observable/Flowable Flow
Subject/BlockingQueue Channel
PublishSubject SendChannel
BehaviorSubject StateFlow
Schedulers Dispatchers
Disposables Scopes/Job
subscribe collect
Observable.toSingle() Flow.first()
subscribeOn flowOn
observeOn collector’s context
onNext offer/onEach/emit
onError catch
Single<T> suspend () -> T
Maybe<T> suspend () -> T?
Completable suspend () -> unit
Callback* StateFlow
Handler Actor
emit (flow)
  • StateFlow use distinctUntilChangeed by default

  • Coroutines Disparchers = RxJava Scheduler (+ Exception Handler + parent context/job)

Ref:

About

Terminology mapping between Rx and Coroutines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published