github.com/goplusjs/gopherjs@v1.2.6-0.20211206034512-f187917453b8/compiler/natives/src/time/go114_timer.go (about)

     1  // +build js
     2  // +build go1.14
     3  
     4  package time
     5  
     6  func resetTimer(r *runtimeTimer, w int64) bool {
     7  	active := stopTimer(r)
     8  	r.when = w
     9  	startTimer(r)
    10  	return active
    11  }