This commit is contained in:
zhongchao
2022-06-08 18:10:35 +08:00
parent 1ee06f2aa1
commit 650d43f914
17 changed files with 188 additions and 145 deletions

View File

@@ -37,7 +37,6 @@ class RxJavaBackPressureTest {
@Test
fun testIntervalBackPressure() = runBlocking(Dispatchers.Default) {
val subscription = Flowable.interval(50, MILLISECONDS).doOnNext {
Log.d("RxJava2", "-- do action --")
}.subscribeOn(Schedulers.computation()).observeOn(Schedulers.io()).subscribe {
Thread.sleep(2000)
}