What's the advantage? (In this particular case, not in general.)
> But since you have to call C anyhow, I would suggest just doing it in C.
Yeah, I guess it's simpler.
> There isn't any way to hook into Go's scheduler for this. Go's
> scheduler provides no mechanism for waiting for data without reading
> the data.
I suppose it makes sense, the operation might be difficult to implement in
a hypothetical scheduler that's layered over mainframe-style async operations.
Thanks for your reply,
-- Juliusz