faern / oneshot

Oneshot Rust channel working both in and between sync and async environments
74 stars 9 forks source link

Handle being polled and then sync methods called #9

Closed faern closed 4 years ago

faern commented 4 years ago

What if the Future implementing part of the Receiver is being polled and then the future is cancelled in some way so the user gets it back. What if they then call any of the sync recv methods? The cannel will then already be in the RECEIVING state. It is currently not implemented to handle this.

faern commented 4 years ago

Fixed in 600bf3f5bb7c3745d268f8c856c202cd451d26db