cupertino-docs/docs/dispatch/documentation_dispatch_dispatchsourceuserdataor.json
Mihaela Mihaljevic 1eae0594fc data: refresh docs/ + add packages/ from .cupertino-dev
Bulk update of the public corpus from /Users/mmj/.cupertino-dev/, the
local source that built v1.0.0 / v1.0.1 release database bundles.

- docs/: 1,739 new pages, 403,381 modified (schema upgrade to the
  structured-page format used by v1.0+: overview, rawMarkdown,
  sections[].items[]). Total 404,568 page JSONs (2.4 GB).
- packages/: 1,587 packages (1.5 GB), previously empty in this repo.
  Includes per-package source archives and READMEs for the curated
  Swift package set. Some packages (notably swiftlang/swift-foundation-icu)
  ship 50-100 MB ICU lookup tables — under GitHub's 100 MB limit.

No deletions: existing files not in .cupertino-dev are preserved
(e.g. swift-org/ has 81 historical pages this update doesn't touch).
2026-05-09 12:58:32 +02:00

140 lines
5.8 KiB
JSON

{
"abstract" : "A dispatch source that coalesces data you provide using an OR operation.",
"availability" : [
{
"beta" : false,
"deprecated" : false,
"name" : "iOS",
"unavailable" : false
},
{
"beta" : false,
"deprecated" : false,
"name" : "iPadOS",
"unavailable" : false
},
{
"beta" : false,
"deprecated" : false,
"name" : "Mac Catalyst",
"unavailable" : false
},
{
"beta" : false,
"deprecated" : false,
"name" : "macOS",
"unavailable" : false
},
{
"beta" : false,
"deprecated" : false,
"name" : "tvOS",
"unavailable" : false
},
{
"beta" : false,
"deprecated" : false,
"name" : "visionOS",
"unavailable" : false
},
{
"beta" : false,
"deprecated" : false,
"name" : "watchOS",
"unavailable" : false
}
],
"codeExamples" : [
],
"conformingTypes" : [
"DispatchSource"
],
"contentHash" : "206656efdddeebc3cc7b86a9085551af899e9cf56b79791f374d96180911437d",
"crawlDepth" : 4,
"crawledAt" : "2026-05-03T05:36:33Z",
"declaration" : {
"code" : "protocol DispatchSourceUserDataOr : DispatchSourceProtocol, Sendable",
"language" : "swift"
},
"id" : "14A7FC78-49E0-C685-9F4D-DBA34C8AFE58",
"kind" : "protocol",
"language" : "swift",
"module" : "Dispatch",
"overview" : "## Overview\n\nYou do not adopt this protocol in your objects. Instead, use the [doc:\/\/com.apple.dispatch\/documentation\/Dispatch\/DispatchSource\/makeUserDataOrSource(queue:)] method to create an object that adopts this protocol.\n\nTo add custom data to the dispatch source, call the [doc:\/\/com.apple.dispatch\/documentation\/Dispatch\/DispatchSourceUserDataOr\/or(data:)] method.",
"platforms" : [
"iOS",
"iPadOS",
"Mac Catalyst",
"macOS",
"tvOS",
"visionOS",
"watchOS"
],
"rawMarkdown" : "---\nsource: https:\/\/developer.apple.com\/documentation\/dispatch\/dispatchsourceuserdataor\ncrawled: 2026-05-03T05:36:33Z\n---\n\n# DispatchSourceUserDataOr\n\n**Protocol**\n\nA dispatch source that coalesces data you provide using an OR operation.\n\n## Declaration\n\n```swift\nprotocol DispatchSourceUserDataOr : DispatchSourceProtocol, Sendable\n```\n\n## Overview\n\nYou do not adopt this protocol in your objects. Instead, use the [doc:\/\/com.apple.dispatch\/documentation\/Dispatch\/DispatchSource\/makeUserDataOrSource(queue:)] method to create an object that adopts this protocol.\n\nTo add custom data to the dispatch source, call the [doc:\/\/com.apple.dispatch\/documentation\/Dispatch\/DispatchSourceUserDataOr\/or(data:)] method.\n\n## Getting the Event Data\n\n- **or(data:)**\n\n## Creating a Custom Source\n\n- **makeUserDataAddSource(queue:)**: Creates a new dispatch source object that you use to coalesce custom app data using an AND operator.\n- **makeUserDataOrSource(queue:)**: Creates a new dispatch source object that you use to coalesce custom app data using an OR operator.\n- **makeUserDataReplaceSource(queue:)**: Creates a new dispatch source object that you use to track custom app data.\n- **DispatchSourceUserDataAdd**: A dispatch source that coalesces data you provide using an AND operation.\n- **DispatchSourceUserDataReplace**: A dispatch source that replaces any pending data with the new value you provide.\n\n## Inherits From\n\n- DispatchSourceProtocol\n- NSObjectProtocol\n- Sendable\n- SendableMetatype\n\n## Conforming Types\n\n- DispatchSource\n\n",
"sections" : [
{
"content" : "",
"items" : [
{
"description" : "",
"name" : "or(data:)",
"url" : "https:\/\/developer.apple.com\/documentation\/Dispatch\/DispatchSourceUserDataOr\/or(data:)"
}
],
"title" : "Getting the Event Data"
},
{
"content" : "",
"items" : [
{
"description" : "Creates a new dispatch source object that you use to coalesce custom app data using an AND operator.",
"name" : "makeUserDataAddSource(queue:)",
"url" : "https:\/\/developer.apple.com\/documentation\/Dispatch\/DispatchSource\/makeUserDataAddSource(queue:)"
},
{
"description" : "Creates a new dispatch source object that you use to coalesce custom app data using an OR operator.",
"name" : "makeUserDataOrSource(queue:)",
"url" : "https:\/\/developer.apple.com\/documentation\/Dispatch\/DispatchSource\/makeUserDataOrSource(queue:)"
},
{
"description" : "Creates a new dispatch source object that you use to track custom app data.",
"name" : "makeUserDataReplaceSource(queue:)",
"url" : "https:\/\/developer.apple.com\/documentation\/Dispatch\/DispatchSource\/makeUserDataReplaceSource(queue:)"
},
{
"description" : "A dispatch source that coalesces data you provide using an AND operation.",
"name" : "DispatchSourceUserDataAdd",
"url" : "https:\/\/developer.apple.com\/documentation\/Dispatch\/DispatchSourceUserDataAdd"
},
{
"description" : "A dispatch source that replaces any pending data with the new value you provide.",
"name" : "DispatchSourceUserDataReplace",
"url" : "https:\/\/developer.apple.com\/documentation\/Dispatch\/DispatchSourceUserDataReplace"
}
],
"title" : "Creating a Custom Source"
},
{
"content" : "",
"items" : [
{
"name" : "DispatchSourceProtocol"
},
{
"name" : "NSObjectProtocol"
},
{
"name" : "Sendable"
},
{
"name" : "SendableMetatype"
}
],
"title" : "Inherits From"
}
],
"source" : "appleJSON",
"title" : "DispatchSourceUserDataOr",
"url" : "https:\/\/developer.apple.com\/documentation\/dispatch\/dispatchsourceuserdataor"
}