Nonblocking recvfrom?

Well, as far as I know, there is no nonblocking recvfrom (assuming you’re talking about Sockets.recvfrom). There’s also no good way to interrupt a running async task, which is why I suggested using a Timer to periodically interrupt the blocking behavior, then check the Channel for whether or not the thread should terminate or not, then relaunch a Timer and block again.