-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Flow invariant is violated in version above 1.4.2 #2944
Comments
This is expected behaviour since the update.
The section you need is "Context preservation" |
@qwwdfsad I think I'm using the same context I would appreciate if you could give me an example how that code could work in the new version of courotines, thanks! |
|
@qwwdfsad I've already tried and throws this error:
|
Oh, sorry, I misread the snippet. The simplest option is to use
|
I'm excecuting this code in
Android
:And when I use a version of coroutines above
1.4.2
and worker version above2.5.0
I'll get this exception:Is this a bug or a normal behaviour since the update?
The code will work using these libraries versions:
The text was updated successfully, but these errors were encountered: