spyglass icon indicating copy to clipboard operation
spyglass copied to clipboard

Expose underlying addListener in futures?

Open kingpong opened this issue 6 years ago • 0 comments

I am trying to avoid blocking a thread while waiting for a memcached operation to complete. The underlying (e.g.) GetFuture offers addListener to support fully asynchronous workflows. I would like to use this to adapt the GetFuture into a CompletableFuture.

Unfortunately the spyglass GetFuture wrapper hides addListener. Would you accept a PR to expose it?

kingpong avatar Sep 07 '18 22:09 kingpong