MCPcopy
hub / github.com/AstrBotDevs/AstrBot / task2

Method task2

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

Source from the content-addressed store, hash-verified

130 execution_order.append("task1-end")
131
132 async def task2():
133 await asyncio.sleep(0.01) # Let task1 start first
134 async with manager.acquire_lock(session_id):
135 execution_order.append("task2-start")
136 execution_order.append("task2-end")
137
138 await asyncio.gather(task1(), task2())
139

Callers

nothing calls this directly

Calls 2

acquire_lockMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected