Implement $q.allSettled