close

fun close()

Closes the underlying Room database, releasing the file handle. Primarily useful for tests that construct and destroy services repeatedly. In a normal app the database stays open for the process lifetime — Android does not require explicit close.