You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit exposes the future stub on Pinecone connection, allowing for
non-blocking async calls
## Problem
PineconeConnection does not currently expose a stub for making
asynchronous calls to the service. Async calls are very common in high
traffic services.
## Solution
Exposed the generated `VectorServiceGrpc.VectorServiceFutureStub` on
`PineconeConnection`. This returns
`com.google.common.util.concurrent.ListenableFuture<V>` for each call,
which allows chaining of asynchronous operations.
The PR also removes an unused public method, `setBlockingStub`; can add
this back if client API compatibility dictates.
## Type of Change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update
- [ ] Infrastructure change (CI configs, etc)
- [ ] Non-code change (docs, etc)
- [ ] None of the above: (explain here)
## Test Plan
Run `sanityAsyncFuture` test
0 commit comments