-
Notifications
You must be signed in to change notification settings - Fork 481
Closed
Description
| Previous ID | SR-1859 |
| Radar | None |
| Original Reporter | Andreas Grosam (JIRA User) |
| Type | Bug |
| Status | Closed |
| Resolution | Won't Do |
Additional Detail from JIRA
| Votes | 0 |
| Component/s | libdispatch, Standard Library |
| Labels | Bug, RunTimeCrash |
| Assignee | Andreas Grosam (JIRA) |
| Priority | Medium |
md5: 731bcc2142f4e03e3ff0ffc5490a8cc6
Issue Description:
With Swift 3, setting the target queue of an existing dispatch queue fails in the Simulator for iOS and tvOS. It does not fail on macOS. (watchOS not tested, and not tested on actual devices).
This did not fail with Swift 2.2.
The code below shows the issue:
func testSetTargetQueue() {
let queue = DispatchQueue(label: "queue", attributes: DispatchQueueAttributes.serial)
let syncQueue = DispatchQueue(label: "sync_queue", attributes: DispatchQueueAttributes.serial)
queue.setTarget(queue: syncQueue) // EXC_BAD_INSTRUCTION. Error: "Cannot change the target of this queue after it has been activated"
}Reactions are currently unavailable