MCPcopy Create free account
hub / github.com/microsoft/debugpy / factory

Function factory

tests/pytest_fixtures.py:126–132  ·  view source on GitHub ↗
(func, name_suffix="")

Source from the content-addressed store, hash-verified

124 daemons = []
125
126 def factory(func, name_suffix=""):
127 name = func.__name__ + name_suffix
128 thread = threading.Thread(target=func, name=name)
129 thread.daemon = True
130 daemons.append(thread)
131 thread.start()
132 return thread
133
134 yield factory
135

Callers

nothing calls this directly

Calls 5

appendMethod · 0.45
startMethod · 0.45
joinMethod · 0.45
checkMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…