I get an crash when creating a GCD queue in Swift, any idea?
var q: dispatch_queue_t?
q = dispatch_queue_create("com.kukodajanos.queryPlaces", 0)
By looking at the documentational comments for it by alt + click you can see:
In the attr you can pass 3 things: nil, DISPATCH_QUEUE_SERIAL and DISPATCH_QUEUE_CONCURRENT
not an Int.
Pass nil instead of 0:
var q: dispatch_queue_t?
q = dispatch_queue_create("com.kukodajanos.queryPlaces", nil)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With