Skip to content

channel/recv: improving function docs and code example#703

Merged
yoshuawuyts merged 1 commit into
async-rs:masterfrom
spacekookie:recv-docs
Mar 15, 2020
Merged

channel/recv: improving function docs and code example#703
yoshuawuyts merged 1 commit into
async-rs:masterfrom
spacekookie:recv-docs

Conversation

@spacekookie

Copy link
Copy Markdown
Contributor

At the moment it's not clear when and why recv returns Option,
instead of just T. This changed comment makes it clear that None will
only be returned once no data will ever be sent again (i.e. after all
senders are gone).

At the moment it's not clear when and why recv returns Option<T>,
instead of just T. This changed comment makes it clear that None will
only be returned once no data will ever be sent again (i.e. after all
senders are gone).
@yoshuawuyts

Copy link
Copy Markdown
Contributor

Related: #585

@yoshuawuyts yoshuawuyts merged commit e026b75 into async-rs:master Mar 15, 2020
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.

3 participants