As of Go 1.16, runtime.ReadMemStats is superseded by the runtime/metrics package. Should update this package once Go 1.17 is released, and 1.16 becomes the lowest supported version for this package.
Also, maybe there's a nice way to write a shutdown API with NotifyContext
As of Go 1.16,
runtime.ReadMemStats
is superseded by theruntime/metrics
package. Should update this package once Go 1.17 is released, and 1.16 becomes the lowest supported version for this package.Also, maybe there's a nice way to write a shutdown API with
NotifyContext