Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Enforce non zero capacity for channel #715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Licenser wants to merge 2 commits into async-rs:main from Licenser:forbid-zero-size-channel

Conversation

Copy link
Contributor

@Licenser Licenser commented Feb 24, 2020

This aligns the function with it's documentation and will result in easier to resolve errors for problems such as #712.

closes #712

Copy link
Contributor Author

this fails in quite a few places but I don't think those failures are related to my changes

Copy link
Contributor Author

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?

Copy link
Contributor Author

ah strike that, it requires to be manually wrapped, however, it could be used for the internal functions? as in the Channel struct

yoshuawuyts reacted with thumbs up emoji

Copy link
Member

k-nasa commented Mar 9, 2020

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.

Licenser and others added 2 commits March 11, 2020 20:58
@Licenser Licenser force-pushed the forbid-zero-size-channel branch from d181398 to 3004312 Compare March 11, 2020 19:58
Copy link
Contributor Author

Sorry for the late reply / rebase, got dragged into $otherrthings TM️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@yoshuawuyts yoshuawuyts yoshuawuyts requested changes

@k-nasa k-nasa k-nasa approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

"capacity must be positive" error when sending between tasks

AltStyle によって変換されたページ (->オリジナル) /