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

Use abstract class instead of interface for job types to define static members #84

Open
arthur-er opened this issue May 22, 2021 · 0 comments

Comments

@arthur-er
Copy link

arthur-er commented May 22, 2021

What would you like to be added:
I would like to change the current JobContract interface, to an abstract class instead, so it's possible to define key as a static member

Why is this needed:
So when adding new jobs its not necessary to call new Job().key, just Job.key, reducing instantiations made by the app and making the code prettier

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

No branches or pull requests

1 participant