MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / async_inner

Method async_inner

test/base/test_concurrency.py:137–140  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

135 # NOTE: sleep here is not necessary. It's used to simulate IO
136 # ensuring that task are not run sequentially
137 async def async_inner(val):
138 await asyncio.sleep(random.uniform(0.005, 0.015))
139 eq_(val, var.get())
140 return var.get()
141
142 async def async_set(val):
143 await asyncio.sleep(random.uniform(0.005, 0.015))

Callers

nothing calls this directly

Calls 2

eq_Function · 0.90
getMethod · 0.45

Tested by

no test coverage detected