Skip to content

Interop library for exposing Android's main thread and loopers as RxJava 3 Schedulers directly.

License

Notifications You must be signed in to change notification settings

akarnokd/RxJavaAndroidInterop

Repository files navigation

RxJavaAndroidInterop

Interop library for exposing Android's main thread and loopers as RxJava 3 Schedulers directly.

Ported from https://github.com/ReactiveX/RxAndroid

codecov.io Maven Central

RxJava 3: Maven Central

dependencies {
    implementation "com.github.akarnokd:rxjava3-android-interop:3.0.0-RC6"
}

Usage

import hu.akarnokd.rxjava3.android.*;
import io.reactivex.rxjava3.core.*;

Flowable.intervalRange(1, 10, 1, 1, TimeUnit.SECONDS, AndroidInteropSchedulers.mainThread())
.subscribe(System.out::println);

plugins for overrides

import hu.akarnokd.rxjava3.android.*;

AndroidInteropPlugins.setMainThreadSchedulerHandler(scheduler -> scheduler);

About

Interop library for exposing Android's main thread and loopers as RxJava 3 Schedulers directly.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages