Created
April 7, 2019 09:41
-
-
Save pahill/a6a4fa1e10de466a2a9e7e55854d0b88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private suspend fun <T> dbQuery(block: () -> T): T { | |
return withContext(Dispatchers.IO) { | |
transaction { block() } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment