openapi-rust-sdk
openapi-rust-sdk copied to clipboard
Openapi SDK calls blocking Axum handler
Using SDK in an Axum route:
async fn get_data() -> Json<Vec<Item>> {
let items = client.get_items().await.unwrap();
Json(items)
}
Some requests block unexpectedly. Is there a recommended pattern for non-blocking SDK calls in Axum?