023c593d35
In case of ProduceExecuteRun, the producer is called in a loop, and it never returns null (unless stopped), so ExecutionStrategy.execute() never returns. In case of ExecuteProduceRun, ExecutionStrategy.execute() does return, but only after it has arranged another thread to continue producing. Therefore calling ExecutionStrategy.execute() in a loop was spinning since the ExecutionStrategy had already arranged to produce with another thread and therefore calling execute() again was a no-operation hence causing the spinning. |
||
---|---|---|
.. | ||
src | ||
pom.xml |