You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a DealerSocket (it is a child of NetMQSocket).
And I want to use TryReceiveMultipartMessage method with cancellationToken.
This extension method uses "TryReceive" method. if (!socket.TryReceive(ref msg, timeout))
TryReceive uses private field m_socketHandle to call "TryRecv" without cancellationToken. m_socketHandle.TryRecv(ref msg, timeout);
So ideally we can just overload the NetMQSocket::TryReceive and pass cancellationToken.
And create additional extension method TryReceiveMultipartMessage to use cancellationToken as well.
Is it a bad idea or somebody knows another way how to terminate TryReceiveMultipartMessage?
Because even if I dispose the socket - it does not interrupt the method immediately.
The text was updated successfully, but these errors were encountered:
Hi, I have a DealerSocket (it is a child of NetMQSocket).
And I want to use TryReceiveMultipartMessage method with cancellationToken.
This extension method uses "TryReceive" method.
if (!socket.TryReceive(ref msg, timeout))
TryReceive uses private field
m_socketHandle
to call "TryRecv" without cancellationToken.m_socketHandle.TryRecv(ref msg, timeout);
CancellationToken logic was implemented in #876
So ideally we can just overload the
NetMQSocket::TryReceive
and pass cancellationToken.And create additional extension method TryReceiveMultipartMessage to use cancellationToken as well.
Is it a bad idea or somebody knows another way how to terminate TryReceiveMultipartMessage?
Because even if I dispose the socket - it does not interrupt the method immediately.
The text was updated successfully, but these errors were encountered: