Swift Combine: Buffer upstream values and emit them at a steady rate?
问题 Using the new Combine framework in iOS 13. Suppose I have an upstream publisher sending values at a highly irregular rate - sometimes seconds or minutes may go by without any values, and then a stream of values may come through all at once. I'd like to create a custom publisher that subscribes to the upstream values, buffers them and emits them at a regular, known cadence when they come in, but publishes nothing if they've all been exhausted. For a concrete example: t = 0 to 5000ms: no