Finding 4 (follow-up): an open run's waits are said again after its readers are taken up, so the say does not delay the take-up

Builds: design 47 H2b §832 4.; H-A-873
This commit is contained in:
2026-11-27 04:14:42 +01:00
parent 50945e9b9a
commit c98e92afae
@@ -439,7 +439,6 @@ func ackOrNak(m jetstream.Msg, err error, logf func(string, ...any)) {
// takeUp says, at the assigner's start, the end of each reader of a run with no `ended` once its runs end (§719, A-468): the
// step's goroutine is gone, so its end is judged from the candidate's keys naming it.
func (c *compositionSteps) takeUp(ctx context.Context, r *compositionRuns) {
r.sayWaitsAgain()
readers, err := r.readersOfOpen()
if err != nil {
c.logf("composition-runs: the runs standing at the start are not read, so their readers are not taken up: %v", err)
@@ -458,4 +457,6 @@ func (c *compositionSteps) takeUp(ctx context.Context, r *compositionRuns) {
}
go c.say1(ctx, reader.ID, stepRunOf(reader.CompositionReader), how, again)
}
// the waits of the open runs are said again once the readers are taken up: the runs' ends race the take-up, and a say must not delay it
r.sayWaitsAgain()
}