Use context.AfterFunc() when we use Go 1.21
Use context.AfterFunc()
, introduced in Go 1.21, to eliminate an extra goroutine per RPC in serverMaxConnAgeStatsHandler
. See TagRPC()
.
Edited by Mikhail Mazurskiy
Use context.AfterFunc()
, introduced in Go 1.21, to eliminate an extra goroutine per RPC in serverMaxConnAgeStatsHandler
. See TagRPC()
.