Start a new thread and wrap with error catching.
(function, *args, **kwargs)
| 257 | # Allow starting threads that can be debugged. |
| 258 | |
| 259 | def 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 | |
| 263 | def _bootstrap(function, args, kwargs): |
| 264 | "Run function with arguments and log any errors." |
no outgoing calls
no test coverage detected