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

io.objectbox.rx3.Query.kt Maven / Gradle / Ivy

package io.objectbox.rx3

import io.objectbox.query.Query
import io.reactivex.rxjava3.core.BackpressureStrategy
import io.reactivex.rxjava3.core.Flowable
import io.reactivex.rxjava3.core.Observable
import io.reactivex.rxjava3.core.Single

/**
 * Shortcut for [`RxQuery.flowableOneByOne(query, strategy)`][RxQuery.flowableOneByOne].
 */
fun  Query.flowableOneByOne(strategy: BackpressureStrategy = BackpressureStrategy.BUFFER): Flowable {
    return RxQuery.flowableOneByOne(this, strategy)
}

/**
 * Shortcut for [`RxQuery.observable(query)`][RxQuery.observable].
 */
fun  Query.observable(): Observable> {
    return RxQuery.observable(this)
}

/**
 * Shortcut for [`RxQuery.single(query)`][RxQuery.single].
 */
fun  Query.single(): Single> {
    return RxQuery.single(this)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy