-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
A-tokioArea: The main tokio crateArea: The main tokio crateC-questionUser questions that are neither feature requests nor bug reportsUser questions that are neither feature requests nor bug reportsM-taskModule: tokio/taskModule: tokio/task
Description
Version
0.2.21
Platform
Linux
Description
I'm basically having the problem in this issue #2376, which is to use block_on within a tokio task, and sometimes it hangs. This comment #2376 (comment) says using spawn_blocking fixes it. I figured block_in_place should also work, but it didn't. A guess for why is that when using block_in_place the thread local variable for the task budget continues to decrease, when it should stop counting. Possibly as was done for LocalSet.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-tokioArea: The main tokio crateArea: The main tokio crateC-questionUser questions that are neither feature requests nor bug reportsUser questions that are neither feature requests nor bug reportsM-taskModule: tokio/taskModule: tokio/task