<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Combine",
  "identifier" : "/documentation/Combine/Publishers/BufferingStrategy",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine10PublishersO17BufferingStrategyO"
  },
  "title" : "Publishers.BufferingStrategy"
}
-->

# Publishers.BufferingStrategy

A strategy that handles exhaustion of a buffer’s capacity.

```
enum BufferingStrategy<Failure> where Failure : Error
```

## Topics

### Buffering strategies

[`case dropNewest`](/documentation/Combine/Publishers/BufferingStrategy/dropNewest)

When the buffer is full, discard the newly received element.

[`case dropOldest`](/documentation/Combine/Publishers/BufferingStrategy/dropOldest)

When the buffer is full, discard the oldest element in the buffer.

[`case customError(() -> Failure)`](/documentation/Combine/Publishers/BufferingStrategy/customError(_:))

When the buffer is full, execute the closure to provide a custom error.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)