MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / task

Method task

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

Source from the content-addressed store, hash-verified

164 return retval
165
166 async def task(val):
167 await asyncio.sleep(random.uniform(0.005, 0.015))
168 var.set(val)
169 await asyncio.sleep(random.uniform(0.005, 0.015))
170 return await greenlet_spawn(inner, val)
171
172 values = {
173 await coro

Callers

nothing calls this directly

Calls 2

greenlet_spawnFunction · 0.90
setMethod · 0.45

Tested by

no test coverage detected