How to return failed task result in continuation task [duplicate]
问题 This question already has an answer here : How to return failed task result in continuation task? (1 answer) Closed 9 days ago . I'm writing my first app in Kotlin and am using Firestore & Firebase Storage. In the process of deleting a document, I want to delete all files in Storage that the document references (as it is the only reference to them in my case). If the Storage delete fails, I want to abort the document delete, in order to avoid orphan files in my Storage. I also want to do