rust icon indicating copy to clipboard operation
rust copied to clipboard

timer::delayed_send() blocks, doesn't return immediately

Open ttaubert opened this issue 13 years ago • 5 comments

The docs about timer::delayed_send() at http://dl.rust-lang.org/doc/std/timer.html say:

This call returns immediately.

In fact, it doesn't return immediately but blocks. Does this need a code fix or should the documentation be corrected?

ttaubert avatar Dec 14 '12 12:12 ttaubert

I think the code should probably be changed. recv_timeout expects delayed_send to return immediately. Having it block until the send is performed seems to defeat the purpose.

brson avatar Dec 15 '12 01:12 brson

@brson this looks vaguely like it might be under the umbrella of your 0.7 scheduler work; is it? If not, we can push it back to a maturity milestone.

graydon avatar Apr 30 '13 00:04 graydon

assigning bug; change assignment if you disagree

graydon avatar Apr 30 '13 22:04 graydon

I know this is painful for people, but I'm not planning on fixing it since it's tied to the old uv implementation in std. I expect this code to just be ripped out soon.

brson avatar May 01 '13 23:05 brson

Sounds fine. Closing.

graydon avatar May 02 '13 02:05 graydon