Closed heifner closed 4 weeks ago
By checking is_quitting() before calling poll() there is the possibility that something was posted but not drained to the priority queue. Instead use the io_context stopped() to break out of the loop after calling poll().
is_quitting()
poll()
io_context
stopped()
Included in #34
By checking
is_quitting()
before callingpoll()
there is the possibility that something was posted but not drained to the priority queue. Instead use theio_context
stopped()
to break out of the loop after callingpoll()
.