如何在RxJava中开始使用fromRunnable?

时间:2016-05-14 11:13:06

标签: android rx-java

我是RxJava的新手,我遇到了我无法在" Async Operators"中使用fromRunnable的问题。为了使用Runnable。

在gitHub上说是

  

以下运算符是不同的rxjava-async模块的一部分。

在Gradle中我实现了这个

dependencies {

    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.2.0'
    compile 'com.android.support:preference-v7:23.2.0'
    compile 'com.android.support:design:23.2.0'
    compile 'io.reactivex:rxandroid:1.1.0'

    compile 'io.reactivex:rxjava:1.1.0'
    compile 'com.jakewharton.rxbinding:rxbinding:0.4.0'

    compile 'io.reactivex:rxjava-async-util:0.21.0'
    compile 'com.netflix.rxjava:rxjava-async-util:0.17.5'
}

0 个答案:

没有答案