Provides a cancel method on promises created by the angular $q service.