Thread-safe memory object streams #521
Unanswered
davidbrochart
asked this question in
Q&A
Replies: 1 comment 17 replies
-
In order to send messages between event loop threads, you would have to create a memory object stream and start a blocking portal in one event loop, and then use |
Beta Was this translation helpful? Give feedback.
17 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Memory object streams are not thread-safe. Since they don't (de)serialize, they seem to be a good fit to pass data between different threads.
In a scenario where there is an event loop running in the main thread, and a separate event loop running in another thread, how can memory object streams be used to pass data between both threads?
This hangs:
Beta Was this translation helpful? Give feedback.
All reactions