tailscale/types/lazy
Andrew Dunham 200d92121f types/lazy: add Peek method to SyncValue
This adds the ability to "peek" at the value of a SyncValue, so that
it's possible to observe a value without computing this.

Updates tailscale/corp#17122

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Co-authored-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Change-Id: I06f88c22a1f7ffcbc7ff82946335356bb0ef4622
2024-06-24 12:41:00 -07:00
..
lazy.go types/lazy: add Peek method to SyncValue 2024-06-24 12:41:00 -07:00
sync_test.go types/lazy: add Peek method to SyncValue 2024-06-24 12:41:00 -07:00
unsync.go types/lazy: helpers for lazily computed values 2023-02-10 20:59:58 -08:00
unsync_test.go types/lazy: helpers for lazily computed values 2023-02-10 20:59:58 -08:00