Skip to content

Commit 0165e73

Browse files
Merge pull request #11777 from ktopley-apple/dispatch-apply-fixup
Change the fix-up for dispatch_apply() to refer to the correct replacement.
2 parents abe34f8 + 9b96c0e commit 0165e73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/SDK/Dispatch/Private.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public func dispatch_io_set_interval(_ channel: DispatchIO, _ interval: UInt64,
138138
fatalError()
139139
}
140140

141-
@available(*, unavailable, renamed:"DispatchQueue.apply(attributes:iterations:execute:)")
141+
@available(*, unavailable, message:"Use DispatchQueue.concurrentPerform(iterations:execute:). The 'queue' argument is not required because the system chooses the appropriate execution context for the block")
142142
public func dispatch_apply(_ iterations: Int, _ queue: DispatchQueue, _ block: (Int) -> Void)
143143
{
144144
fatalError()

0 commit comments

Comments
 (0)