Wendy-Android icon indicating copy to clipboard operation
Wendy-Android copied to clipboard

Add a `groupId` listener

Open levibostian opened this issue 6 years ago • 0 comments

From the discussion in this issue, adding a global listener for a specific groupId would be beneficial to be able to listen to a group of tasks and when they will all be complete.

Tasks to help you get started:

  • [ ] Create a listener interface with the listeners
    • [ ] Create callback functions for: runningTask(task: PendingTask), fun allTasksComplete(), fun taskDoneRunning(taskId: Long, successful: Boolean, numberTasksLeftInGroup: Int)
  • [ ] Add function in WendyConfig to add a listener to a group by id
  • [ ] Add function to remove listener
  • [ ] Call callbacks in the task runner.

levibostian avatar Dec 08 '18 18:12 levibostian