MCPcopy Index your code
hub / github.com/slackapi/python-slack-sdk / _get_event_loop

Function _get_event_loop

slack/web/async_internal_utils.py:16–23  ·  view source on GitHub ↗

Retrieves the event loop or creates a new one.

()

Source from the content-addressed store, hash-verified

14
15
16def _get_event_loop() -> AbstractEventLoop:
17 """Retrieves the event loop or creates a new one."""
18 try:
19 return asyncio.get_event_loop()
20 except RuntimeError:
21 loop = asyncio.new_event_loop()
22 asyncio.set_event_loop(loop)
23 return loop
24
25
26def _get_url(base_url: str, api_method: str) -> str:

Callers 1

api_callMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected