executeOnIO

protected suspend fun <T> executeOnIO(operation: suspend () -> T): T

Execute a database operation on the IO dispatcher. This is a helper method for subclasses to use when implementing their own database operations.

Return

The result of the operation.

Parameters

operation

The database operation to execute.