-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-1859] DispatchQueue setTarget fails with EXC_BAD_INSTRUCTION #741
Comments
cc mww (JIRA User) |
Comment by Matt Wright (JIRA) This is an intended behaviour change, DispatchQueue() accepts a ```queue:``` parameter for setting the target queue. After which the target queue hierarchy is immutable. |
Is there any point where it makes sense to call |
Comment by Matt Wright (JIRA) If you create a DispatchQueue with the .initiallyInactive flag then it's valid to call setTarget on it, it's similarly safe for sources pre-activate()/resume(). |
Comment by Pierre Habouzit (JIRA) FWIW |
Comment by Matt Wright (JIRA) Closing given that this is both intended behaviour, and there is still a reason for DIspatchObject.setTarget(queue🙂 to exist. |
Comment by Andreas Grosam (JIRA) The new API and restrictions makes sense to me. Thanks for clearing this issue. |
Additional Detail from JIRA
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:
The text was updated successfully, but these errors were encountered: