Enumeration_Concurrency5.9.0
BufferingPolicy
A strategy that handles exhaustion of a buffer’s capacity.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
enum BufferingPolicy
Citizens in _Concurrency
Members
case bufferingNewest(Int)
When the buffer is full, discard the oldest element in the buffer.
case bufferingOldest(Int)
When the buffer is full, discard the newly received element.
case unbounded
Continue to add to the buffer, without imposing a limit on the number of buffered elements.