It is awkward in scala to work with ListenableFuture that is returned when you are using cassandra java driver to make asynchronous calls.

The gist below converts the ListenableFuture to scala Future that you can compose.

Vishal Chawla

Vishal Chawla

I am a recovering entrepreneur. I dabble in everything data related and am fluent in scala, spark, kafka, cassandra and flink.