MCPcopy Create free account
hub / github.com/Louisym/MiniCC / sync_task

Function sync_task

tutorials/17_async_await_for_sse.py:44–46  ·  view source on GitHub ↗
(name, seconds)

Source from the content-addressed store, hash-verified

42 start = time.time()
43
44 def sync_task(name, seconds):
45 time.sleep(seconds)
46 return f"{name} 完成"
47
48 # 串行执行
49 r1 = sync_task("烧水", 0.3)

Callers 1

lesson_1_why_asyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected