I’m encountering a `MutabilityException` when usin...
# kotlin-native
s
I’m encountering a
MutabilityException
when using the
native-mt
version of coroutines with
Flow
. I’ve been stuck on this all day and it doesn’t make a ton of sense to me. I’ve re-created the issue on a small scale in the form of tests, one with the exception, one without. It’s difficult to tell if I’m being dense, or if there is a bug that I’m hitting. For some reason the tests never complete when both are in the file. If you comment out
test2
, run
test1
, let it complete, and then check the stdout from the test, you’ll see the error.
test1
has the exception, and
test2
doesn’t. https://gist.github.com/ScottPierce/0e687021f34d779708d1f32bfc81e8e2
b
Sounds like a bug. Recommend reporting it to the coroutines lib
s
meh - this also feels like one of those situations where I could be missing something obvious. I’ll report it I guess.