Files
.gitea
cli
cmd
pkg
scripts
tests
vendor
coopcloud.tech
dario.cat
git.coopcloud.tech
github.com
go.opentelemetry.io
golang.org
x
crypto
exp
net
context
http
http2
hpack
.gitignore
ascii.go
ciphers.go
client_conn_pool.go
config.go
config_go124.go
config_pre_go124.go
databuffer.go
errors.go
flow.go
frame.go
gotrack.go
headermap.go
http2.go
pipe.go
server.go
timer.go
transport.go
unencrypted.go
write.go
writesched.go
writesched_priority.go
writesched_random.go
writesched_roundrobin.go
idna
internal
proxy
trace
LICENSE
PATENTS
sync
sys
term
text
time
google.golang.org
gopkg.in
gotest.tools
modules.txt
.dockerignore
.drone.yml
.envrc.sample
.gitignore
.goreleaser.yml
AUTHORS.md
Dockerfile
LICENSE
Makefile
README.md
go.mod
go.sum
renovate.json
abra/vendor/golang.org/x/net/http2/timer.go
2024-08-04 11:06:58 +02:00

21 lines
515 B
Go

// Copyright 2024 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package http2
import "time"
// A timer is a time.Timer, as an interface which can be replaced in tests.
type timer = interface {
C() <-chan time.Time
Reset(d time.Duration) bool
Stop() bool
}
// timeTimer adapts a time.Timer to the timer interface.
type timeTimer struct {
*time.Timer
}
func (t timeTimer) C() <-chan time.Time { return t.Timer.C }