3 ms·
Hmm didn't have much luck with: https://mikeanthonywild.com/stopping-blocking-threads-in-python-using-gevent-sort-of.html https://mikeanthonywild.com/stopping-b
by ShinyCyril 11y ago
Hmm didn't have much luck with: https://mikeanthonywild.com/stopping-blocking-threads-in-python-using-gevent-sort-of.html https://mikeanthonywild.com/stopping-blocking-threads-in-pyt...
{
"1":"betterthreads provides an enhanced replacement for the an enhanced replacement for the python this isn't actually a true thread instead it uses gevent to",
"2":"the widely-accepted solution is to set a timeout on our blocking functions so we can periodically check a which we set from the main thread to indicate we want the child thread to stop",
"3":"if the thread is still alive the when the *timeout* argument is not present or ``none`` the operation will block until the thread terminates",
"4":"`runtimeerror` if an attempt is made to join the current thread as that would cause a deadlock",
"5":"`join` a thread before it has been started and attempts to do so raises the same exception"
}
That said, I think to summarise that particular would require a certain level of domain expertise, something which a general bot couldn't provide.