So is it good to say one should always prefer one(
currentCoroutineContext()
) over the other? Especially when using Coroutines in an application
Also are you trying to say that since both of these exists in different libs we can't deprecate one in favour of the other?
e
ephemient
08/19/2024, 8:22 AM
cannot remove
coroutineContext
because it is necessary for things using the
kotlin.coroutines
infrastructure (such as
SequenceBuilder
)
but it's confusing in
kotlinx.coroutines
(note the
x
), which is probably what you're working with more often