Skip to content

Expand docs for recv #26715

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

Merged
merged 1 commit into from
Jul 2, 2015
Merged

Expand docs for recv #26715

merged 1 commit into from
Jul 2, 2015

Conversation

steveklabnik
Copy link
Member

Add an example, plus some text that covers the buffering nature of
channels.

Fixes #26497

@rust-highfive
Copy link
Contributor

r? @huonw

(rust_highfive has picked a reviewer for you, use r? to override)

/// drop(send);
/// });
///
/// // `send` is now dropped, but the messages were still buffered
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this comment should be after the join?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put comments describing a line of code before that line, but i see what you're saying with the phrasing

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'm thinking temporarily, the "now" only applies after this statement.

@huonw
Copy link
Member

huonw commented Jul 1, 2015

tidy failed with some trailing whitespace

@steveklabnik
Copy link
Member Author

Tidy fixed and I just removed the comment, I think it stands enough on its own, but maybe not?

@huonw
Copy link
Member

huonw commented Jul 1, 2015

Hm, it's not entirely obvious. A possibility is something like "wait for the thread to finish so that the sender is dropped"?

r=me with a comment like that or not, whatever you feel is best.

Add an example, plus some text that covers the buffering nature of
channels.

Fixes rust-lang#26497
@steveklabnik
Copy link
Member Author

i like it, added

@steveklabnik
Copy link
Member Author

@bors: r=huonw rollup

@bors
Copy link
Collaborator

bors commented Jul 1, 2015

📌 Commit 5564172 has been approved by huonw

bors added a commit that referenced this pull request Jul 2, 2015
Add an example, plus some text that covers the buffering nature of
channels.

Fixes #26497
@bors
Copy link
Collaborator

bors commented Jul 2, 2015

⌛ Testing commit 5564172 with merge 71a6441...

@bors bors merged commit 5564172 into rust-lang:master Jul 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants