Join Slack
Powered by
In new code that doesn't use flows, is there a rec...
# coroutines
c
CLOVIS
10/26/2022, 7:20 PM
In new code that doesn't use flows, is there a recommendation/preference between
coroutineContext
and
currentCoroutineContext()
?
l
Loney Chou
10/29/2022, 2:14 AM
No, choose what you'd like. The later one exists only to avoid ambiguity when in a CoroutineScope
c
CLOVIS
10/29/2022, 5:59 PM
Ok thanks. I assume it's all just compiler magic and there's no performance difference?
l
Loney Chou
10/30/2022, 4:35 AM
✓
Open in Slack
Previous
Next