12 lines
190 B
Go
12 lines
190 B
Go
![]() |
package timer
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type ITimer interface {
|
||
|
NewTimer(duration time.Duration, cb func(), needLog bool, desc ...string) uint32
|
||
|
CancelTimer(timerId uint32)
|
||
|
CancelAllTimer()
|
||
|
}
|