Is block_in_place
in a LocalSet
supported?
#7365
Unanswered
dspyz-matician
asked this question in
General
Replies: 1 comment 1 reply
-
That looks like it should panic. Can you file a bug? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I notice that whether or not I get an error when doing this seems arbitrary. Using
run_until
results in an error. But usingspawn_local
seems to be allowed.In a large codebase, we've found what looks like a rare bug in tokio where there are no available worker threads despite the fact that no spawned tasks are being polled (although can't seem to produce a MWE yet). And it might be because this pattern is meant to be unsupported but the fact that it doesn't panic is a bug (I'm imagining in rare circumstances, the resulting undefined behavior "accidentally eats" a worker thread)? Or it might be completely unrelated.
results in
but
doesn't panic.
Beta Was this translation helpful? Give feedback.
All reactions