Return the running event loop or None. This is a low-level function intended to be used by event loops. This function is thread-specific.
()
| 763 | |
| 764 | |
| 765 | def _get_running_loop(): |
| 766 | """Return the running event loop or None. |
| 767 | |
| 768 | This is a low-level function intended to be used by event loops. |
| 769 | This function is thread-specific. |
| 770 | """ |
| 771 | # NOTE: this function is implemented in C (see _asynciomodule.c) |
| 772 | running_loop, pid = _running_loop.loop_pid |
| 773 | if running_loop is not None and pid == os.getpid(): |
| 774 | return running_loop |
| 775 | |
| 776 | |
| 777 | def _set_running_loop(loop): |
no outgoing calls
no test coverage detected
searching dependent graphs…