Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
main
Function · 0.70
Calls
2
use_scope
Function · 0.85
put_text
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…