Join Slack
Is possible get the coroutine scope of a suspend function??
# getting-started
f
Francis Mariano
06/21/2024, 6:26 PM
Is possible get the coroutine scope of a suspend function??
g
Gleb Minaev
06/21/2024, 6:28 PM
It is possible to get coroutine context but not coroutine scope. You should provide coroutine scope explicitly where it is needed.
f
Francis Mariano
06/21/2024, 6:33 PM
The context is sufficient for what I need.
Francis Mariano
06/21/2024, 6:34 PM
tks a lot
e
ephemient
06/21/2024, 6:46 PM
https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/current-coroutine-context.html
🔥 2
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by