-
Notifications
You must be signed in to change notification settings - Fork 257
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
[Bug] StreamSink
lose infomation sometimes
#1031
Comments
Hi! Thanks for opening your first issue here! 😄 |
Hmm looks like the stream has not been there, i.e. StreamSink is None? |
|
Without detailed examination, I guess then you are just sending data to the old stream while you indeed want to see data in the new stream. |
Is this problem related to #517? I found that issue the stream is None too. |
looks familiar, but I'm not sure. |
@fzyzcjy @rogurotus using a |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue. |
Describe the bug
I am using
StreamSink
to send information to flutter, but sometimes information would lose, only the last one will be accepted by flutter.Here are codes.
but if i add a
sleep
function to rust side, the stream works wellI dont know why this happened, and also, if i use
tokio
multi thread, to send infomation, even with a sleep function, some infomation still will lose.Codegen logs with
RUST_LOG=debug
environment variableTo Reproduce
No response
Expected behavior
No response
Generated binding code
No response
OS
windows 11
Version of
flutter_rust_bridge_codegen
1.62.1
Flutter info
Version of
clang++
No response
Version of
ffigen
6.1.2
Additional context
No response
The text was updated successfully, but these errors were encountered: