3 ms·
> (How does rust do that?) My first thought would be to attach the connection object to the data the other thread is working on. When it is done it processing
by jamii 12y ago
> (How does rust do that?)
My first thought would be to attach the connection object to the data the other thread is working on. When it is done it processing your message it drops the whole thing, closing the connection. If you want to hold it open for multiple workers you could make it an Arc<Connection> so it doesn't close until they all drop it.