MCPcopy Create free account
hub / github.com/ActiveState/code / start_thread

Function start_thread

recipes/Python/577633_Directory_Pruner_2/recipe-577633.py:259–261  ·  view source on GitHub ↗

Start a new thread and wrap with error catching.

(function, *args, **kwargs)

Source from the content-addressed store, hash-verified

257# Allow starting threads that can be debugged.
258
259def start_thread(function, *args, **kwargs):
260 "Start a new thread and wrap with error catching."
261 _thread.start_new_thread(_bootstrap, (function, args, kwargs))
262
263def _bootstrap(function, args, kwargs):
264 "Run function with arguments and log any errors."

Callers 7

searchMethod · 0.70
rm_dirMethod · 0.70
rm_filesMethod · 0.70
rm_subdirsMethod · 0.70
rm_subfilesMethod · 0.70
rm_empty_dirsMethod · 0.70
rm_empty_filesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected