https://kotlinlang.org logo
#coroutines
Title
# coroutines
m

Michal Klimczak

01/17/2021, 9:09 PM
are
CoroutineScopes
cheap? Can I just create a
MainScope()
or sth for e.g. every usecase execution or does it come with some significant overhead? it's a specific use case in kotlin multiplatform where I would rather create it every time than reuse it for a much more concise code.
d

Dominaezzz

01/17/2021, 9:36 PM
As long as you cancel every one you create, sure.
👍 1