- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleValue_config (0.67 sec)
-
src/sync/atomic/example_test.go
} func requests() chan int { return make(chan int) } // The following example shows how to use Value for periodic program config updates // and propagation of the changes to worker goroutines. func ExampleValue_config() { var config atomic.Value // holds current server configuration // Create initial config value and store into config. config.Store(loadConfig()) go func() { // Reload config every 10 seconds
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 18 23:58:54 UTC 2018 - 2.2K bytes - Viewed (0)