mangos
mangos copied to clipboard
Want context.Context versions of send, receive
We code that uses timeout options, but these APIs were designed back before context.Context existed.
It would be good to introduce APIs like
RecvContext() and RecvMsgContext() that took a context as their first argument. Arguably, the former receive functions could then be implemented in terms of these. We would then deprecate the legacy options.
This would also potentially provide a nice API for cancellation.