<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Dispatch",
  "identifier" : "/documentation/Dispatch/DispatchSourceUserDataAdd",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Dispatch"
    ],
    "preciseIdentifier" : "c:objc(pl)OS_dispatch_source_data_add"
  },
  "title" : "DispatchSourceUserDataAdd"
}
-->

# DispatchSourceUserDataAdd

A dispatch source that coalesces data you provide using an AND operation.

```
protocol DispatchSourceUserDataAdd : DispatchSourceProtocol, Sendable
```

## Overview

You do not adopt this protocol in your objects. Instead, use the [`makeUserDataAddSource(queue:)`](/documentation/Dispatch/DispatchSource/makeUserDataAddSource(queue:)) method to create an object that adopts this protocol.

To add custom data to the dispatch source, call the [`add(data:)`](/documentation/Dispatch/DispatchSourceUserDataAdd/add(data:)) method.

## Topics

### Getting the Event Data

[`add(data:)`](/documentation/Dispatch/DispatchSourceUserDataAdd/add(data:))

Adds the value to the current pending data.

## Relationships

### Inherits From

[`Sendable`](/documentation/Swift/Sendable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`DispatchSourceProtocol`](/documentation/Dispatch/DispatchSourceProtocol)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

### Conforming Types

[`DispatchSource`](/documentation/Dispatch/DispatchSource)

---

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)