Skip to content

Commit

Permalink
Make ctor in WorkProcessor public.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh-Zh-7 committed Nov 19, 2024
1 parent b79a557 commit 8f193f6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ public class WorkProcessor<T> {
Processor<T> process;
ProcessState<T> state;

WorkProcessor(Processor<T> processor) {
public WorkProcessor(Processor<T> processor) {
this(processor, ProcessState.yielded());
}

WorkProcessor(Processor<T> process, ProcessState<T> initialState) {
public WorkProcessor(Processor<T> process, ProcessState<T> initialState) {
this.process = process;
this.state = initialState;
}
Expand Down

0 comments on commit 8f193f6

Please sign in to comment.