tailscale/syncs
Andrew Dunham e382e4cee6 syncs: add Swap method
To mimic sync.Map.Swap, sync/atomic.Value.Swap, etc.

Updates tailscale/corp#1297

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: If7627da1bce8b552873b21d7e5ebb98904e9a650
2024-03-19 18:39:44 -04: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 Swap method 2024-03-19 18:39:44 -04:00
syncs_test.go syncs: add Swap method 2024-03-19 18:39:44 -04:00
watchdog.go Fix potential goroutine leak in syncs/watchdog.go 2023-11-18 10:37:29 -08:00
watchdog_test.go syncs: relax TestWatchMultipleValues timing on Windows 2023-04-19 19:00:34 -07:00