Relative Content

Tag Archive for asynchronousrustrust-tokio

tokio mpsc channel deadlock after a while even with one producer – one consumer

I am trying to use tokio::sync::mpsc::channel for communication between Repository and Controller. However, after a few message change, sender is blocked on the .send because the buffer is full and the receiver reads 2 more messages after that and waits for a new message. The problem is that the sender doesn’t get unblocked so they both are hanging.