by krackers · 2y ago · 0 comments
One popular implementation is uvloop (https://github.com/MagicStack/uvloop) which basically just implements the loop using libuv which takes care of doing stuff like `select` as you describe.
Better off, if making some toy loop, to not bother with the forever case.