CoroutinesRoom

class CoroutinesRoom
kotlin.Any
   ↳ androidx.room.CoroutinesRoom

A helper class for supporting Kotlin Coroutines in Room.

Summary

Companion functions

Flow<R>
createFlow(db: RoomDatabase, inTransaction: Boolean, tableNames: Array<String>, callable: Callable<R>)

suspend R
execute(db: RoomDatabase, inTransaction: Boolean, callable: Callable<R>)

suspend R
execute(db: RoomDatabase, inTransaction: Boolean, cancellationSignal: CancellationSignal, callable: Callable<R>)

Companion functions

createFlow

@JvmStatic fun <R> createFlow(
    db: RoomDatabase,
    inTransaction: Boolean,
    tableNames: Array<String>,
    callable: Callable<R>
): Flow<@JvmSuppressWildcards R>

execute

@JvmStatic suspend fun <R> execute(
    db: RoomDatabase,
    inTransaction: Boolean,
    callable: Callable<R>
): R

execute

@JvmStatic suspend fun <R> execute(
    db: RoomDatabase,
    inTransaction: Boolean,
    cancellationSignal: CancellationSignal,
    callable: Callable<R>
): R