Skip to content

Commit

Permalink
(PDB-5696) query.monitor/stop: elaborate on interrupt considerations
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrw committed Sep 5, 2023
1 parent 579aeb2 commit 173dd07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/puppetlabs/puppetdb/query/monitor.clj
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,10 @@
(do
(reset! exit true)
(.wakeup selector)
;; Q: do we want this, and if so, have thread swallow it on the way out?
;; Q: do we want this, and if so, have thread swallow it on the
;; way out? Before deciding, see the SelectableChannel docs.
;; Thread interrupts cause the key for any channel the thread
;; was blocked on to be canceled.
;; (.interrupt monitor-thread)
(if timeout-ms
(.join thread timeout-ms)
Expand Down

0 comments on commit 173dd07

Please sign in to comment.