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

Function background_output

test/template.py:316–326  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314
315
316def background_output():
317 put_text("Background output")
318 set_scope('background')
319
320 def background():
321 for i in range(20):
322 put_text('%s ' % i, inline=True, scope='background')
323
324 t = threading.Thread(target=background)
325 register_thread(t)
326 t.start()
327
328
329async def coro_background_output():

Callers

nothing calls this directly

Calls 3

put_textFunction · 0.85
set_scopeFunction · 0.85
register_threadFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…