Closed faern closed 2 years ago
Yeah good catch there. To be honest I wouldn't worry too much about these degenerate cases since they're already stemming from a pretty substantial misuse of the library, and because as you mentioned these will be fixed by the end of next month.
Just after publishing 0.1.4 I realized that the
try_recv
method did not properly handle being in theUNPARKING
state. I wrote a loom based test proving this was the case, then I fixed the issue. I added a bunch of more loom tests while at it. Verifying that a lot of other poll interactions act sanely.Ping @Cassy343. What do you think? There are too many combinations on how one can call this library right now. To be fully correct we should also have tests trying to call
recv
,recv_timeout
etc after polling also. But that's going to explode in number of tests. This will be mitigated with0.2
where these call combinations are no longer possible.