()
| 64 | |
| 65 | @staticmethod |
| 66 | def close_loop() -> None: |
| 67 | try: |
| 68 | evloop = asyncio.get_event_loop() |
| 69 | if not evloop.is_closed(): |
| 70 | evloop.close() |
| 71 | except RuntimeError: |
| 72 | # If there is no loop to get, there is no loop to close. |
| 73 | pass # nosec |
| 74 | |
| 75 | |
| 76 | def couchbase_loop_factory() -> asyncio.AbstractEventLoop: |
nothing calls this directly
no test coverage detected