Skip to content

Commit df63c19

Browse files
committed
docs: improve docs
1 parent 2ddef6b commit df63c19

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

core/src/main/java/ai/timefold/solver/core/api/solver/SolverJobBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ public interface SolverJobBuilder<Solution_, ProblemId_> {
5959

6060
/**
6161
* Sets the best solution consumer, which may be called multiple times during the solving process.
62+
* <p>
63+
* We strongly recommend not applying any changes to the solution instance while the solver runs.
64+
* It is essential to understand that the solution instance is not cloned when the event is triggered,
65+
* and any modifications may lead to inconsistencies due to its internal reuse.
6266
*
6367
* @param bestSolutionConsumer called multiple times for each new best solution on a consumer thread
6468
* @return this

0 commit comments

Comments
 (0)