timeafter

package
v0.0.0-...-ec0dbc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package timeafter defines an Analyzer that checks for the use of time.After in loops.

Analyzer timeafter

timeafter: check for use of time.After().

The underlining Timer is not recovered by the garbage collector until the timer fires.

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:     "timeafter",
	Doc:      `check for "time.After" instances in loops`,
	URL:      "https://github.com/cilium/linters",
	Requires: []*analysis.Analyzer{inspect.Analyzer},
	Run:      run,
}

Analyzer implements an analysis function that checks for the use of time.After in loops.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL