mirror of https://github.com/jetkvm/kvm.git
20 lines
293 B
Go
20 lines
293 B
Go
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package rfc8888
|
|
|
|
import "time"
|
|
|
|
type ticker interface {
|
|
Ch() <-chan time.Time
|
|
Stop()
|
|
}
|
|
|
|
type timeTicker struct {
|
|
*time.Ticker
|
|
}
|
|
|
|
func (t *timeTicker) Ch() <-chan time.Time {
|
|
return t.C
|
|
}
|