AbstractEventLoop.run_forever()
Run until stop()
is called. If stop()
is called before run_forever()
is called, this polls the I/O selector once with a timeout of zero, runs all callbacks scheduled in response to I/O events (and those that were already scheduled), and then exits. If stop()
is called while run_forever()
is running, this will run the current batch of callbacks and then exit. Note that callbacks scheduled by callbacks will not run in that case; they will run the next time run_forever()
is called.
Changed in version 3.5.1.
Please login to continue.