Using Spark context in a class contructor can cause serialization issues. Move the logic and variables to a member method to avoid some of these problems.
Scala has recently introduced async and await features. It allows to write clean and easy-to-understand code for cases where otherwise complex composition […]