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 new RegisterEventListeners using new EventListener type #517

Merged
merged 3 commits into from Jun 21, 2023

Conversation

JohnRoesler
Copy link
Contributor

@JohnRoesler JohnRoesler commented Jun 20, 2023

What does this do?

deprecates the SetEventListeners function in favor of a more flexible function RegisterEventListeners that accepts a variadic list of EventListener to allow for expansion of event listeners in the future.

Which issue(s) does this PR fix/relate to?

relates to #515
#468

List any changes that modify/break current functionality

deprecates the SetEventListeners function

Have you included tests for your changes?

Did you document any new/modified functionality?

  • Updated example_test.go
  • Updated README.md

Notes

TODO: add ability to enable globally

@JohnRoesler JohnRoesler marked this pull request as ready for review June 21, 2023 02:01
job.go Outdated Show resolved Hide resolved
@JohnRoesler JohnRoesler merged commit ffa4c91 into main Jun 21, 2023
6 checks passed
@JohnRoesler JohnRoesler deleted the new-event-listeners branch June 21, 2023 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant