-

@ Daniel Spiewak
2025-02-13 16:14:49
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqdhlp9quv7gxr9vspuv7rramapsxaw2phk0zjpxw2uq2t6kvnp7csc5hl4y “Slowing down the producer" is most easily accomplished by blocking admission into queues. If the producer fiber is blocked, then it can't move on and make another item which should be added to the queue. Or, more probably, it can't turn around and take from a queue of its own (being filled by some upstream!), and then *that* queue will in turn block the upstream offer, etc etc. This is backpressure.