If you take a look at net.Listen implementation
func Listen(network, address string) (Listener, error) {
var lc ListenConfig
return lc.Listen(context.Background(), network, address)
}
you will notice the new listen API net.ListenConfig.
This API is context aware, I think it would be handy if we had
net.ListenContext the same way we have Dial and DialContext.
Any thoughts on that?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/73488643-5102-45e5-a91d-9d19f6523ec2n%40googlegroups.com.