vineethraj49
03/25/2020, 5:46 PMzak.taccardi
03/25/2020, 5:50 PMCoroutineScope
is likely what you are looking for hereCoroutineScope
used to launch a coroutine has been cancelled, the coroutine will not run (or stop running if it already is)Job
within the CoroutineScope
that you are looking for. scope.coroutineContext[Job]!!
is how you access itvineethraj49
03/25/2020, 6:01 PMconn
here is a org.skife.jdbi.v2.Handle
zak.taccardi
03/25/2020, 6:01 PMZach Klippenstein (he/him) [MOD]
03/25/2020, 7:19 PMawait*
is pretty common.
suspend fun awaitFoo() = withContext(IO) { foo() }
louiscad
03/25/2020, 7:59 PM