MCPcopy Create free account
hub / github.com/PostHog/duckgres / notifyQueryCancel

Function notifyQueryCancel

server/worker.go:185–190  ·  view source on GitHub ↗

notifyQueryCancel delivers one query-cancel request, coalescing bursts: if a cancel is already pending (buffer full), the new one is dropped — the pending token will cancel the same in-flight query.

(ch chan struct{})

Source from the content-addressed store, hash-verified

183// notifyQueryCancel delivers one query-cancel request, coalescing bursts: if
184// a cancel is already pending (buffer full), the new one is dropped — the
185// pending token will cancel the same in-flight query.
186func notifyQueryCancel(ch chan struct{}) {
187 select {
188 case ch <- struct{}{}:
189 default:
190 }
191}
192
193// runChildWorker handles a single client connection in a child process.

Calls

no outgoing calls