A run loop is the concept of running a local loop waiting for a specific event or timeout.
A run loop is the concept of running a local loop waiting for a specific event or timeout.
Such a loop keeps the current thread busy and does not return until the loop has finished, which can either be by a timeout value, an explicit stop signal or if there are no events to process anymore (depends on the specific implementation). Message pumps/loops in applications to process incomming events are typical run loops. But there are other types of local loops (e.g. to make an originally asynchronous process synchronous).