You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/util/expvarx
James Tucker 0f3b2e7b86 util/expvarx: add a time and concurrency limiting expvar.Func wrapper
expvarx.SafeFunc wraps an expvar.Func with a time limit. On reaching the
time limit, calls to Value return nil, and no new concurrent calls to
the underlying expvar.Func will be started until the call completes.

Updates tailscale/corp#16999
Signed-off-by: James Tucker <james@tailscale.com>
4 months ago
..
expvarx.go util/expvarx: add a time and concurrency limiting expvar.Func wrapper 4 months ago
expvarx_test.go util/expvarx: add a time and concurrency limiting expvar.Func wrapper 4 months ago