blob: a6fcfa0a416aeb0598ab04e0462da6f5246be6e6 [file] [log] [blame]
package netconfig_test
import (
"fmt"
"log"
"v.io/core/veyron/lib/netconfig"
)
func ExampleNetConfigWatcher() {
w, err := netconfig.NewNetConfigWatcher()
if err != nil {
log.Fatalf("oops: %s", err)
}
fmt.Println("Do something to your network. You should see one or more dings.")
for {
<-w.Channel()
fmt.Println("ding")
}
}