The Android Developer Challenge is back! Submit your idea before December 2.

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>)

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