Closed tokahuke closed 3 years ago
I think nevermind, I see that the error is more complicated, so that's probably why it doesn't satisfy debug.TryRecvError
needs to satisfy Debug
, otherwise unwrap
won't work.
Does the error
module now need to be public so the caller can match against variants of TryRecvError
?
Also I believe it is spelled queue
.
(a) No, indeed, it needs to satisfy Debug
. I will add that after work today.
(b) Yes and no. Yes, the error types have to be public, but no, there is another way. I have reexported the errors to the crate's root, which has the same effect.
(c) As you may have seen, I have found a bug in my implementation regarding long batches. The latest commit addresses that, but still needs tests to verify that it is now working correctly. Sorry that has sidetracked this PR a bit.
(d) Where did see the "queue" typo?
Backlog:
try_recv
,try_rect_batch
andtry_recv_until
.