<!--
{
  "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/Breakpoint/init(upstream:receiveSubscription:receiveOutput:receiveCompletion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine10PublishersO10BreakpointV8upstream19receiveSubscription0E6Output0E10CompletionAEy_xGx_SbAA0F0_pcSgSb0G0QzcSgSbAA11SubscribersO0H0Oy_7FailureQzGcSgtcfc"
  },
  "title" : "init(upstream:receiveSubscription:receiveOutput:receiveCompletion:)"
}
-->

# init(upstream:receiveSubscription:receiveOutput:receiveCompletion:)

Creates a breakpoint publisher with the provided upstream publisher and breakpoint-raising closures.

```
init(upstream: Upstream, receiveSubscription: ((any Subscription) -> Bool)? = nil, receiveOutput: ((Upstream.Output) -> Bool)? = nil, receiveCompletion: ((Subscribers.Completion<Publishers.Breakpoint<Upstream>.Failure>) -> Bool)? = nil)
```

## Parameters

`upstream`

The publisher from which this publisher receives elements.

`receiveSubscription`

A closure that executes when the publisher receives a subscription, and can raise a debugger signal by returning a true Boolean value.

`receiveOutput`

A closure that executes when the publisher receives output from the upstream publisher, and can raise a debugger signal by returning a true Boolean value.

`receiveCompletion`

A closure that executes when the publisher receives completion, and can raise a debugger signal by returning a true Boolean value.

---

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)