All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rx.lang.kotlin.completable.kt Maven / Gradle / Ivy

package rx.lang.kotlin

import rx.Completable
import rx.Single
import rx.functions.Action0
import java.util.concurrent.Callable
import java.util.concurrent.Future

fun Action0.toCompletable(): Completable = Completable.fromAction(this)
fun  completableOf(f: Function0): Completable = Completable.fromAction { f.invoke() }
fun  Callable.toCompletable(): Completable = Completable.fromCallable { this.call() }
fun  Future.toCompletable(): Completable = Completable.fromFuture(this)
fun  Single.toCompletable(): Completable = Completable.fromSingle(this)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy