MCPcopy
hub / github.com/jackc/pgx / HandleCancel

Method HandleCancel

pgconn/ctxwatch/context_watcher.go:68–68  ·  view source on GitHub ↗

HandleCancel is called when the context that a ContextWatcher is currently watching is canceled. canceledCtx is the context that was canceled.

(canceledCtx context.Context)

Source from the content-addressed store, hash-verified

66 // HandleCancel is called when the context that a ContextWatcher is currently watching is canceled. canceledCtx is the
67 // context that was canceled.
68 HandleCancel(canceledCtx context.Context)
69
70 // HandleUnwatchAfterCancel is called when a ContextWatcher that called HandleCancel on this Handler is unwatched.
71 HandleUnwatchAfterCancel()

Callers 1

WatchMethod · 0.65

Implementers 4

raceProbeHandlerpgconn/pgconn_test.go
testHandlerpgconn/ctxwatch/context_watcher_test.g

Calls

no outgoing calls

Tested by

no test coverage detected