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

Function background_input

test/template.py:564–575  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

562
563
564def background_input():
565 def background():
566 time.sleep(1)
567 res = input('background')
568 put_markdown(f'`background: {repr(res)}`')
569
570 t = threading.Thread(target=background)
571 register_thread(t)
572 t.start()
573
574 res = input('front')
575 put_markdown(f'`front: {repr(res)}`')
576
577
578async def coro_background_input():

Callers

nothing calls this directly

Calls 3

register_threadFunction · 0.85
inputFunction · 0.85
put_markdownFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…