Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions