MCPcopy Create free account
hub / github.com/ipython/ipython / __call__

Method __call__

IPython/core/async_helpers.py:22–28  ·  view source on GitHub ↗

Handler for asyncio autoawait

(self, coro)

Source from the content-addressed store, hash-verified

20class _AsyncIORunner:
21
22 def __call__(self, coro):
23 """
24 Handler for asyncio autoawait
25 """
26 import asyncio
27
28 return asyncio.get_event_loop().run_until_complete(coro)
29
30 def __str__(self):
31 return 'asyncio'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected