-
Notifications
You must be signed in to change notification settings - Fork 316
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
Async.background reports/uses queues other than background #22
Comments
Did you run in simulator? |
Yes. |
I just ran it on a device and the tests passed. Did I miss somewhere where it said that this doesn't work with the simulator? |
Possibly relevant: http://stackoverflow.com/a/5172968/3409110 |
From my own findings: I would like to believe that the simulator is not capable of running multithreaded code, but the problem I have with that, is that if normal GCD works in the simulator and Async doesn't. This sounds like a fixable problem to me. @duemunk: Maybe you should add this discovery to the README to save people some time until the bug is fixed. Just my $0.02 |
@istx25 If you can make GCD work in these cases where Async doesn't, please let me know. I think GCD works fine with the pre iOS 8 queue classes, but not with the new ones e.g. |
I made a new Swift project (single view controller) and added Async.swift file. I used the following sample code in my viewDidLoad:
Running the project multiple times, the results I get are either:
Or:
Never do I get the first block reporting that it is running on the background queue.
Xcode 6.1.1 (6A2008a)
The text was updated successfully, but these errors were encountered: