Is there a cleaner way to implement this iteration cycle where we basically want to build up batches and then send the batch ones that happen in sequence? Maybe splitting the iteration (yield only when old_ptr != new_ptr) from the command sending?
Right now the switching between completion batch & wake_batch, then the subsequent send outside of the for loop (line 306) takes too much thinking to really grok what it's doing.
Originally posted by @piercefreeman in #236 (comment)
Is there a cleaner way to implement this iteration cycle where we basically want to build up batches and then send the batch ones that happen in sequence? Maybe splitting the iteration (yield only when old_ptr != new_ptr) from the command sending?
Right now the switching between completion batch & wake_batch, then the subsequent send outside of the for loop (line 306) takes too much thinking to really grok what it's doing.
Originally posted by @piercefreeman in #236 (comment)