MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / _create_future

Function _create_future

asyncpg/connect_utils.py:1367–1373  ·  view source on GitHub ↗
(loop)

Source from the content-addressed store, hash-verified

1365
1366
1367def _create_future(loop):
1368 try:
1369 create_future = loop.create_future
1370 except AttributeError:
1371 return asyncio.Future(loop=loop)
1372 else:
1373 return create_future()

Callers 3

__init__Method · 0.85
__connect_addrFunction · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected