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 start immediately func #229

Merged
merged 2 commits into from
Sep 9, 2021
Merged

Conversation

JohnRoesler
Copy link
Contributor

What does this do?

  • adds the func StartImmediately to allow overriding the default behavior of a job, for example, starting a Cron job immediately vs. waiting for it's regular schedule, which is the default behavior of Cron
  • renames the job mutex to be a private struct field mu so that a user can't lock/unlock the job

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

#227

List any changes that modify/break current functionality

Have you included tests for your changes?

Did you document any new/modified functionality?

  • Updated example_test.go
  • Updated README.md

Notes

@JohnRoesler JohnRoesler merged commit cd3ac43 into go-co-op:main Sep 9, 2021
@JohnRoesler JohnRoesler deleted the startimmediately branch September 9, 2021 16:36
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.

1 participant