AI engineering glossary · Computing foundations

What is event loop?

Event loop: A loop that waits for events such as network data arriving or timers expiring and runs the code registered to handle each one. It is the engine behind asynchronous frameworks, letting one thread manage thousands of connections.

Level: advancedTopic: Computing foundations

Event loop: an example

Python's asyncio runs an event loop that resumes your await-ing functions when their results are ready.

Related terms

More Computing foundations terms

Where you learn it

Event loop is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.