Skip to content
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

chore: remove async from TaskGroup::spawn #4601

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

maan2003
Copy link
Member

fixes #4493

command used for replace:

rust-analyzer ssr '$tg.spawn($n, $f).await ==>> $tg.spawn($n, $f)'

@maan2003 maan2003 force-pushed the ma/jj-wwkzwnovqwmn branch 2 times, most recently from b9db404 to 24589fb Compare March 18, 2024 11:22
fixes fedimint#4493

command used for replace:

	rust-analyzer ssr '$tg.spawn($n, $f).await ==>> $tg.spawn($n, $f)'
@elsirion
Copy link
Contributor

Great cleanup!

@maan2003 maan2003 marked this pull request as ready for review March 18, 2024 13:40
@maan2003 maan2003 requested review from a team as code owners March 18, 2024 13:40
@justinmoon justinmoon added this pull request to the merge queue Mar 18, 2024
Copy link
Member

@bradleystachurski bradleystachurski left a comment

Choose a reason for hiding this comment

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

rust-analyzer ssr neat!

@@ -287,7 +296,11 @@ impl TaskGroup {
info!(target: LOG_TASK, "Subgroup finished");
}

while let Some((name, join)) = self.inner.join.lock().await.pop_front() {
// drop lock earl
Copy link
Member

Choose a reason for hiding this comment

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

[nit] early

Merged via the queue into fedimint:master with commit be2815f Mar 18, 2024
20 checks passed
@maan2003 maan2003 deleted the ma/jj-wwkzwnovqwmn branch March 19, 2024 18:45
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.

TaskGroup::spawn doesn't need to be async?
5 participants