At the beginning of this month I asked this question "What is runloop?" After reading the answers and some attempts, I got it to work, but still I do not fully understand this. If runloop is just a loop associated with a thread, and it does not spawn another thread backstage, as any of the other code in my thread (mainthread so that it is simple) could run without "blocking" / did not start because it is where does an infinite loop do?
This is the number one question. Then to the second.
If I did something while working with this, but not fully understanding that runloop is a loop in which you attach flags that notify runloop that when it comes to the point where the flag is, it stops "and does any handler that is attached at this point? Then it continues to work until the next one in the queue.

So, in this case, the events are not queued in the connections, but when it comes to events, it takes any actions related to tap 1 and performs it before it connects to the connections again and so on. Or am I, as far as I can understand the concept?
source share