Skip to content

Openapi SDK not working with tokio runtime in existing CLI #4

@francescobianco

Description

@francescobianco

My CLI project uses:

#[tokio::main]
async fn main() {
    let sdk = openapi_sdk::Client::new("API_KEY");
    sdk.get_products().await.unwrap();
}

Sometimes I get Runtime already running errors when calling from subcommands. How to properly integrate the SDK into existing tokio apps?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions