News for hackers. Stuff that matters.
Re:Goroutines: The concurrency model we wanted all along by dfawcus on Sunday July 09, 2023 @06:22PM (#36659580)
As I recall, cancelling out of a Recv() as in a network read can be achieved by setting an expiry time in the past.

i.e. on a net.Conn one can use SetReadDeadline() to unblock/cancel a Read().

There are no comments on this comment yet.