I am using Google\'s Task API in Kotlin and am faced with the next situation:
... val deleteTask = getItem(id)?.continueWithTask { task -> if (task.isSucce
Ok, I just found what I've been looking for: Tasks API has a Tasks object which has functions: forCanceled() & forResult(). Before I only investigated the Task class and didn't know of the Tasks object... For more information, see here.
Tasks
forCanceled()
forResult()
Task