watchdog
watchdog copied to clipboard
Does the finish handling existing items on the queue when stop() is called?
I wanted to ask for a clarification.
The API documentation isn't clear on this, and so far I don't feel confident answering this question for myself by reading the code.
When you call stop()
on an Observer
instance, if there are items on the event queue at that point, are those items handled, or are they discarded?
If the latter, is there a way to tell the observer?: process all the items currently queued, and then stop the thread.
Many thanks.