withReadDb

abstract suspend fun <T> withReadDb(block: suspend (MeshtasticDatabase) -> T): T(source)

Execute one bounded read against the synchronously published current database without writer admission. The read is tracked through orderly shutdown and fails with IllegalStateException if admission starts after shutdown.