MCPcopy Create free account
hub / github.com/Learning-and-Intelligent-Systems/proc3s / threaded_input

Function threaded_input

vtamp/utils.py:80–91  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

78
79
80def threaded_input(*args, **kwargs):
81 data = []
82 thread = threading.Thread(
83 target=lambda: data.append(input(*args, **kwargs)), args=[]
84 )
85 thread.start()
86 try:
87 while thread.is_alive():
88 p.getMouseEvents()
89 finally:
90 thread.join()
91 return data[-1]
92
93
94def get_previous_log_folder(base_dir):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected