MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / task

Method task

test/base/test_concurrency_py3k.py:190–194  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

188 return retval
189
190 async def task(val):
191 await asyncio.sleep(random.uniform(0.005, 0.015))
192 var.set(val)
193 await asyncio.sleep(random.uniform(0.005, 0.015))
194 return await greenlet_spawn(inner, val)
195
196 values = {
197 await coro

Callers

nothing calls this directly

Calls 2

greenlet_spawnFunction · 0.90
setMethod · 0.45

Tested by

no test coverage detected