iOS Run Loop, What Why When

Picked From Stack overflow in Credits

Run Loop is a mechanism that allows threads to process events at any time without exiting.

Run Loop is actually an object that manages the events and messages that it needs to process and provides an entry function to execute the logic of the Event.

After the thread executes this function, it will stay in the “accept message-> wait-> processing -> Sleep till next message -> accept message”

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store