Skip to content

Conversation

@teor2345
Copy link
Contributor

@teor2345 teor2345 commented Jul 2, 2024

Motivation

The documentation of JoinSet's try_join_next() and try_join_next_with_id() doesn't say what happens if there are no completed tasks.

join_next() waits, but try_join_next() appears to return None immediately.

Solution

Update the docs for both methods.

Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

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

Thank you.

@Darksonn Darksonn added T-docs Topic: documentation A-tokio Area: The main tokio crate M-task Module: tokio/task labels Jul 2, 2024
@Darksonn Darksonn merged commit 4d0d89f into tokio-rs:master Jul 2, 2024
This was referenced Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tokio Area: The main tokio crate M-task Module: tokio/task T-docs Topic: documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants