Jonathan Mew
11/01/2019, 9:52 AMrunBlocking(<http://Dispatchers.IO|Dispatchers.IO>) {
try {
thirdParty.doNetworkStuff()
} catch (e: Exception) {
log.warn("recoverable error", e)
}
}
gildor
11/01/2019, 10:09 AMJonathan Mew
11/01/2019, 10:10 AMredundant
? Is it because it's likely the library does that for me under the hood?gildor
11/01/2019, 10:11 AMrunBlocking
, why do you want to execute this operation on one more thread on IO (so use 2 threads instead of 1)Jonathan Mew
11/01/2019, 10:15 AMgildor
11/01/2019, 10:17 AMJonathan Mew
11/01/2019, 10:18 AMgildor
11/01/2019, 10:19 AMJonathan Mew
11/01/2019, 10:19 AMgildor
11/01/2019, 10:20 AMJonathan Mew
11/01/2019, 10:21 AMgildor
11/01/2019, 10:21 AMThe ktor CRUD methods are not suspend thoughWhat do you mean?
Jonathan Mew
11/01/2019, 10:23 AMfun <T:Table> T.insert(body: T.(InsertStatement<Number>)->Unit): InsertStatement<Number>
gildor
11/01/2019, 10:26 AMJonathan Mew
11/01/2019, 10:29 AMgildor
11/01/2019, 10:30 AMJonathan Mew
11/01/2019, 10:30 AMgildor
11/01/2019, 10:30 AMrunBlocking
Jonathan Mew
11/01/2019, 10:32 AMEvan R.
11/01/2019, 2:52 PMJonathan Mew
11/01/2019, 3:56 PMEvan R.
11/01/2019, 4:01 PMnewSuspendedTransaction
calls will throw an exception, but a fix was made for it. Not sure if it’s merged yet though.Jonathan Mew
11/01/2019, 4:08 PM