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

     1  // +build js
     2  // +build !go1.15
     3  
     4  package time
     5  
     6  import "github.com/gopherjs/gopherjs/js"
     7  
     8  type runtimeTimer struct {
     9  	i       int32
    10  	when    int64
    11  	period  int64
    12  	f       func(interface{}, uintptr)
    13  	arg     interface{}
    14  	timeout *js.Object
    15  	active  bool
    16  	req     uintptr
    17  }