watchdog icon indicating copy to clipboard operation
watchdog copied to clipboard

Does the finish handling existing items on the queue when stop() is called?

Open samfrances opened this issue 3 years ago • 0 comments

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.

samfrances avatar Feb 24 '22 14:02 samfrances