Skip to content

Add an async API returning CompletableFuture #4

Description

@garretpremo

Requested by @DevChango in #1 if the client could offer an async API alongside the synchronous API.

e.g. systemOneAsync returning CompletableFuture.

Proposal

Add async counterparts to the existing entry points:

  • CompletableFuture<TypeSafeResponse> systemOneAsync(...) for every systemOne overload
  • CompletableFuture<List<ModelCard>> models().listAsync(...)

Both methods should honor the same per-call RequestOptions and the same retry policy as the blocking calls, and complete exceptionally with the same TypeSafeException subclasses.

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions