python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Is DispatchQueue using RunLoop?
Every Thread has its own RunLoop, how DispatchQueue interact with them? Is DispatchQueue using RunLoop to dispatch task to Thread or do it by another way?

Grigorii
Votes: 0
Answers: 1
How to properly deallocate semaphore?
Steps to reproduce crash:
If semaphore.wait() is called and then deinitialize the view controller that owns it before calling semaphore.signal, app crashes.
Getting below error on dinit of the class:
...

Dhruvil Patel
Votes: 0
Answers: 0
Is there a way to enforce serial scheduling of async/await calls similar to a GCD serial queue?
Using Swift's new async/await functionality, I want to emulate the scheduling behavior of a serial queue (similar to how one might use a DispatchQueue or OperationQueue in the past).
Simplifying my us...
bplattenburg
Votes: 0
Answers: 1
DispatchQueue.main and DispatchQueue.global are same in swift?
Dispatchqueue.main runs on main thread and global runs on background thread, is that correct? If not, then what’s the difference?
Vyankatesh
Votes: 0
Answers: 1