Top "Dispatch-queue" questions

How to use background thread in swift?

How to use threading in swift? dispatchOnMainThread:^{ NSLog(@"Block Executed On %s", dispatch_queue_get_label(dispatch_get_current_queue())); }];

ios swift multithreading dispatch-queue
DispatchQueue : Cannot be called with asCopy = NO on non-main thread

I am presenting the UIAlertController on the main thread as : class HelperMethodClass: NSObject { class func showAlertMessage(message:String, viewController: UIViewController) { …

swift grand-central-dispatch swift4.2 dispatch-queue
Type of expression is ambiguous without more context error

How do I fix this code so it doesn't give the error: Type of expression is ambiguous without more context? …

ios swift xcode dispatch-queue
Is DispatchQueue.global(qos: .userInteractive).async same as DispatchQueue.main.async

I was going through the tutorial : https://www.raywenderlich.com/148513/grand-central-dispatch-tutorial-swift-3-part-1 And came across the definition of QoS class …

ios swift grand-central-dispatch qos dispatch-queue
how to stop a dispatchQueue in swift

I have a DispatchQueue for a introViewController that shows a gif for 11 seconds and then display my login page... But …

swift dispatch-queue
Stop a DispatchQueue that is running on the main thread

I have this block of code: DispatchQueue.main.asyncAfter(deadline: .now() + (delay * Double(isDelayAccounted.hashValue)) + extraDelay) { self.isShootingOnHold = false self.…

swift grand-central-dispatch dispatch-queue
Applying filter to real time camera preview - Swift

I'm trying to follow the answer given here: https://stackoverflow.com/a/32381052/8422218 to create an app which uses the back …

ios swift camera core-image dispatch-queue
Swift Cancel DispatchQueue Process

I have a UDP method that waits for a reply using the DispatchQueue using the following code: DispatchQueue.global(qos: .…

swift dispatch-queue