async-std
async-std copied to clipboard
Enforce non zero capacity for channel
This aligns the function with it's documentation and will result in easier to resolve errors for problems such as #712.
closes #712
this fails in quite a few places but I don't think those failures are related to my changes
I've been doing some thinking and perhaps instead of guarding against zero we could use the type checker to make sure that we never get zero by using NonZeroUsize what do you think?
ah strike that, it requires to be manually wrapped, however, it could be used for the internal functions? as in the Channel struct
this fails in quite a few places but I don't think those failures are related to my changes
I think it can be fixed by rebase master.
Sorry for the late reply / rebase, got dragged into $otherrthings :tm: