News for hackers. Stuff that matters.
Re:You might want async in your project by klabb3 on Sunday September 10, 2023 @02:41PM (#37458691)
> Show me how to cancel a network requests using only threads, with no access to the underlying socket APIs?

It’s been a long time since I did this in Rust. But why do you not have access to the sockets or at least a set_timeout method? Is it a higher level lib that omits such crucial features?

In Go, the super common net.Conn interface has deadline methods. Not everyone knows their importance but generally you have something like it piped through to the higher layers.

There are no comments on this comment yet.