what's a good naming convention if I'm writing a s...
# coroutines
v
what's a good naming convention if I'm writing a suspending implementation of an existing method?
z
I don’t know what a job handle is, but
CoroutineScope
is likely what you are looking for here
2
if the
CoroutineScope
used to launch a coroutine has been cancelled, the coroutine will not run (or stop running if it already is)
more specifically, it is the
Job
within the
CoroutineScope
that you are looking for.
scope.coroutineContext[Job]!!
is how you access it
v
i think you’re referring to the below post ;) also
conn
here is a
org.skife.jdbi.v2.Handle
z
oh, wups
z
await*
is pretty common.
Copy code
suspend fun awaitFoo() = withContext(IO) { foo() }
1
l
@zak.taccardi Wrong thread? I think you can delete the messages from this one.
👍 2