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/syncs
James Tucker 498f7ec663 syncs: add Map.LoadOrInit for lazily initialized values
I was reviewing some code that was performing this by hand, and wanted
to suggest using syncs.Map, however as the code in question was
allocating a non-trivial structure this would be necessary to meet the
target.

Updates #cleanup

Signed-off-by: James Tucker <james@tailscale.com>
1 year ago
..
locked.go
locked_test.go
shardedmap.go syncs: add ShardedMap.Mutate 1 year ago
shardedmap_test.go syncs: add ShardedMap.Mutate 1 year ago
syncs.go syncs: add Map.LoadOrInit for lazily initialized values 1 year ago
syncs_test.go syncs: add Map.LoadOrInit for lazily initialized values 1 year ago
watchdog.go
watchdog_test.go