How are blocking/expensive operations handled without blocking other requests? #1259
Answered
by
davidpdrsn
conways-glider
asked this question in
Q&A
-
I'm looking to understand if this library has an equivalent to actix-web's If not, how does axum prevent long running requests from blocking new requests? |
Beta Was this translation helpful? Give feedback.
Answered by
davidpdrsn
Aug 13, 2022
Replies: 1 comment 5 replies
-
Use https://docs.rs/tokio/latest/tokio/task/fn.spawn_blocking.html |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
conways-glider
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use https://docs.rs/tokio/latest/tokio/task/fn.spawn_blocking.html