elizarov
05/04/2017, 7:12 AMrun to switch context and make it into a suspending invocation from netty pools, for example:
val dbContext = newFixedThreadPoolContext(nThreads = useTheSizeOfYouDBConnectionPoolHere, name = "dbPool")
suspend fun someDBOperation(params: Params) = run(dbContext) {
// use a regular blocking DB access here like JDBC and return result
}