Return the running event loop. Raise a RuntimeError if there is none. This function is thread-specific.
()
| 751 | |
| 752 | |
| 753 | def get_running_loop(): |
| 754 | """Return the running event loop. Raise a RuntimeError if there is none. |
| 755 | |
| 756 | This function is thread-specific. |
| 757 | """ |
| 758 | # NOTE: this function is implemented in C (see _asynciomodule.c) |
| 759 | loop = _get_running_loop() |
| 760 | if loop is None: |
| 761 | raise RuntimeError('no running event loop') |
| 762 | return loop |
| 763 | |
| 764 | |
| 765 | def _get_running_loop(): |
nothing calls this directly
no test coverage detected