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
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: