fun addTaskStatusListenerForTask(taskId: Long, listener: PendingTaskStatusListener): Unit
Listen to updates about a specific task and how it is going. Get updated when this specific task gets run by the task runner, then if it fails/succeeds/gets skipped.
If the task with the taskId parameter does not exist, you will simply not receive any callbacks. Your listener will be ignored.
taskId
- The taskId to the PendingTask you want to receive callbacks about.
listener
- Instance of listener to receive the callbacks. Note: Wendy keeps a weak reference to your listener. Make sure that you keep a strong reference to the listener you give!
See Also