Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a groupId listener #52

Open
6 tasks
levibostian opened this issue Dec 8, 2018 · 0 comments
Open
6 tasks

Add a groupId listener #52

levibostian opened this issue Dec 8, 2018 · 0 comments

Comments

@levibostian
Copy link
Owner

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant