Python Forum
Is Event.set() the preferred way to stop a thread?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is Event.set() the preferred way to stop a thread?
#5
(Jul-17-2018, 01:48 AM)Larz60+ Wrote: I don't think that's what I said. See: http://www.xavierdupre.fr/blog/2013-11-02_nojs.html for example

Okay I understand now what you said, but it is reliable? As stated in the post _stop() might disappear in a future version of Python. Given that the method has an underscore, doesn't it go against the guideline of calling those methods in client code? It's meant to be private, correct?
Reply


Messages In This Thread
RE: Is Event.set() the preferred way to stop a thread? - by svetlanarosemond - Jul-17-2018, 01:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Anyway to stop a thread and continue it? dimidgen 2 378 Mar-18-2024, 10:53 AM
Last Post: DeaD_EyE
  Error SQLite objects created in a thread can only be used in that same thread. binhduonggttn 3 15,698 Jan-31-2020, 11:08 AM
Last Post: DeaD_EyE
  Preferred way to slice a list SvetlanaofVodianova 3 2,589 Dec-09-2019, 11:50 PM
Last Post: SvetlanaofVodianova
Exclamation Error: There is no current event loop in thread 'MainThread' AlekseyPython 5 16,088 Feb-21-2019, 04:37 AM
Last Post: AlekseyPython
  a preferred choice os the two lines? Skaperen 9 6,463 May-27-2017, 02:31 AM
Last Post: Skaperen
  preferred?: multiple assignment Skaperen 6 6,203 Dec-19-2016, 06:18 PM
Last Post: Ofnuts

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020