Hi, I want to use CancelRequestContextWatcherHandler to cancel requests after a context timeout on a request, and I see here time.Sleep, which in fact holds the connection for 100ms just like that. Is there, in theory, some kind of synchronization option?
|
time.Sleep(100 * time.Millisecond) |
Hi, I want to use CancelRequestContextWatcherHandler to cancel requests after a context timeout on a request, and I see here time.Sleep, which in fact holds the connection for 100ms just like that. Is there, in theory, some kind of synchronization option?
pgx/pgconn/pgconn.go
Line 2509 in 98e7e9f