We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optional context for recv? Or use WithTimeout in
recv
zmq4/socket.go
Line 121 in 91805d6
The text was updated successfully, but these errors were encountered:
yeah, right now, this is only possible like so:
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() ch := make(chan error) go func() { msg, err = sck.Recv() ch <- err }() select { case <-ctx.Done(): case err := <- ch: // ... }
I guess one could indeed wire in a ctx context.Context argument to the Socket.Recv and Socket.Send methods...
ctx context.Context
Socket.Recv
Socket.Send
Sorry, something went wrong.
No branches or pull requests
optional context for
recv
? Or use WithTimeout inzmq4/socket.go
Line 121 in 91805d6
The text was updated successfully, but these errors were encountered: