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>
2023-10-06 17:06:11 -07:00
..
locked.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
locked_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
shardedmap.go syncs: add ShardedMap.Mutate 2023-06-28 08:43:15 -07:00
shardedmap_test.go syncs: add ShardedMap.Mutate 2023-06-28 08:43:15 -07:00
syncs.go syncs: add Map.LoadOrInit for lazily initialized values 2023-10-06 17:06:11 -07:00
syncs_test.go syncs: add Map.LoadOrInit for lazily initialized values 2023-10-06 17:06:11 -07:00
watchdog.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
watchdog_test.go syncs: relax TestWatchMultipleValues timing on Windows 2023-04-19 19:00:34 -07:00