On martedì 22 marzo 2022 11:42:21 CET Fabio M. De Francesco wrote: > The reason why this pattern does not work as expected is too long to be > explained here. However, I think that Greg is suggesting to you to research > and use what are called "Condition variables". Sorry, "Condition" -> "Completion". Fabio