clojurewerkz / spyglass

A Clojure Memcached client (also: Couchbase, Kestrel). Built on top of SpyMemcached, supports ASCII and binary protocols, strives to be 100% feature complete.
http://clojurememcached.info
67 stars 17 forks source link

Expose underlying addListener in futures? #33

Open kingpong opened 6 years ago

kingpong commented 6 years ago

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?