streamProvider and stream.listen #2114
AndroidDesigner
started this conversation in
General
Replies: 1 comment
-
This part is not correct, you're using yield inside the listener (Also not disposing that listener is another thing):
Instead you can do:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone.
I have a TCP socket so that messages are coming from server every 1 second for different scenarios.
I want to use streamProvider to be able to update my UI.
So I did listen to my stream in a streamProvider as the below:
Status:
Section (C) is called when I receive a new data from server.
Line (A) is called when streamProvider is called.
But Line (B) is never called and therefore streamProvider can not be updated from stream.listen!
I expect that execution of section (C) results in (B) is called too and therefore my streamProvider to be updated.
But why Section (B) is not called at all?
Beta Was this translation helpful? Give feedback.
All reactions