Skip to content

block_in_place doesn't panic on a spawn_local task #7368

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

Open
dspyz-matician opened this issue May 27, 2025 · 0 comments · May be fixed by #7372
Open

block_in_place doesn't panic on a spawn_local task #7368

dspyz-matician opened this issue May 27, 2025 · 0 comments · May be fixed by #7372
Labels
A-tokio Area: The main tokio crate C-bug Category: This is a bug. M-blocking Module: tokio/task/blocking M-runtime Module: tokio/runtime

Comments

@dspyz-matician
Copy link

Description

See discussion #7365

@Darksonn response indicates block_in_place on spawn_local is intended to be unsupported, and I've found (but have not been able to create MWE) that in some cases worker threads vanish permanently when engaging in this behavior. But currently it doesn't panic and the fact that it's unsupported isn't explicitly documented

@dspyz-matician dspyz-matician added C-bug Category: This is a bug. A-tokio Area: The main tokio crate labels May 27, 2025
@Darksonn Darksonn added the M-runtime Module: tokio/runtime label May 28, 2025
@Darksonn Darksonn linked a pull request May 28, 2025 that will close this issue
@Darksonn Darksonn added the M-blocking Module: tokio/task/blocking label May 28, 2025
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 C-bug Category: This is a bug. M-blocking Module: tokio/task/blocking M-runtime Module: tokio/runtime
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants