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

Make contract between Task and JobData #52

Closed
zero88 opened this issue Jul 28, 2023 · 0 comments · Fixed by #54
Closed

Make contract between Task and JobData #52

zero88 opened this issue Jul 28, 2023 · 0 comments · Fixed by #54
Assignees
Milestone

Comments

@zero88
Copy link
Owner

zero88 commented Jul 28, 2023

Is your feature request related to a problem? Please describe.
Enforce typing between JobData and Task
That makes coding life easier in the compile time to avoid cast data

Describe the solution you'd like

interface JobData<T> {
    <T> T get();
}
interface Task<T>{
    void execute(@NotNull JobData<T> jobData, @NotNull TaskExecutionContext executionContext);
}
@zero88 zero88 self-assigned this Jul 28, 2023
@zero88 zero88 changed the title Make contract between JobData and Task Make contract between Task and JobData Jul 28, 2023
@zero88 zero88 added this to the 2.0.0 milestone Aug 16, 2023
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 a pull request may close this issue.

1 participant