Source File
timer.go
Belonging Package
github.com/imroc/req/v3/internal/http2
// 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 http2import// A timer is a time.Timer, as an interface which can be replaced in tests.type timer = interface {C() <-chan time.TimeReset(d time.Duration) boolStop() bool}// timeTimer adapts a time.Timer to the timer interface.type timeTimer struct {*time.Timer}func ( timeTimer) () <-chan time.Time { return .Timer.C }
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |