-
Notifications
You must be signed in to change notification settings - Fork 36
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
Incorporate selectors into Shuttle #94
base: main
Are you sure you want to change the base?
Incorporate selectors into Shuttle #94
Conversation
…e receivers) and no Debug enforcement
src/sync/mpsc/selector.rs
Outdated
} | ||
|
||
/// Any object which is selectable -- typically used for a receiver. | ||
pub trait Selectable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this in the public API?
src/sync/mpsc/selector.rs
Outdated
let id = ExecutionState::me(); | ||
|
||
loop { | ||
for handle in &mut *handles { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to add more than once
}, | ||
None, | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add more tests: 3 threads
Includes a unit testing suite, additions to mpsc channels