Skip to content

Openapi SDK calls blocking Axum handler #8

@francescobianco

Description

@francescobianco

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions