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
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
how to do blocking `dispatch_sync` using `NSOperationQueue`
Sometimes I need to do synchronous return. In dispatch_sync it's just:
__block int foo
dispatch_sync({
foo = 3
});
return foo;
I am not sure how that translates to NSOperationQueue. I have checked ...

user626776
Votes: 0
Answers: 1