'How can i observe value for didUpdateLocations using PromiseKit+CoreLocation?

This is my code currently i get the location once but then it stops updating. I am fairly new to Promise Kit. I think my problem is i am using done here which ultimately ends the chain. Can someone help me s that i keep getting the updated location in this block? Thanks!

CLLocationManager.requestLocation().done { locations in

        print(locations)
    }.catch { err in
        print(err)
    }


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source