Example #1
0
func (timer *Timer) Stop() (err error) {
	r := C.uv_timer_stop(timer.t)
	if r != 0 {
		return timer.GetLoop().LastError().Error()
	}
	return nil
}
Example #2
0
File: timer.go Project: zchee/gouv
func (timer *Timer) Stop() (err error) {
	r := C.uv_timer_stop(timer.t)
	if r != 0 {
		return &Error{int(r)}
	}
	return nil
}