carllerche / syncbox

Concurrency utilities for Rust
131 stars 14 forks source link

Should Async::poll be considered as registering interest? #14

Closed carllerche closed 9 years ago

carllerche commented 9 years ago

On one hand, it is attempting to observe the data, on the other, if the data isn't available, it won't return the data...

Hoverbear commented 9 years ago

poll may be used to evaluate which decision to make in control flow, and does not necessarily imply there is a desire to immediately act on the value should it be present.

carllerche commented 9 years ago

I think you are probably right. I'm going to close this as I think the answer is no.