()
| 85 | |
| 86 | |
| 87 | def get_event_loop(): |
| 88 | try: |
| 89 | loop = asyncio.get_event_loop() |
| 90 | except RuntimeError: |
| 91 | loop = asyncio.new_event_loop() |
| 92 | asyncio.set_event_loop(loop) |
| 93 | |
| 94 | return loop |
| 95 | |
| 96 | |
| 97 | def auto_await(func): |
no outgoing calls
no test coverage detected