MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / bg_task

Function bg_task

demos/set_env_demo.py:22–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 put_markdown('---')
21
22 async def bg_task():
23 while 1:
24 with use_scope('time', clear=True):
25 put_text('Current time:', datetime.datetime.now())
26
27 await asyncio.sleep(1)
28
29 run_async(bg_task())
30

Callers 1

mainFunction · 0.70

Calls 2

use_scopeFunction · 0.85
put_textFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…