Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. package main
  2.  
  3. import "time"
  4.  
  5. func main() {
  6. timer := time.NewTimer(100 * time.Minute)
  7. for i := 0; i < 8; i++ {
  8. go func() {
  9. for {
  10. timer.Reset(100 * time.Minute)
  11. }
  12. }()
  13. }
  14.  
  15. select {}
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement