MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / task1

Method task1

tests/unit/test_session_lock.py:126–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124 execution_order = []
125
126 async def task1():
127 async with manager.acquire_lock(session_id):
128 execution_order.append("task1-start")
129 await asyncio.sleep(0.1)
130 execution_order.append("task1-end")
131
132 async def task2():
133 await asyncio.sleep(0.01) # Let task1 start first

Callers

nothing calls this directly

Calls 2

acquire_lockMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected