nowait

package
v0.0.0-...-804b954 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package nowait checks owned Go code for nondeterministic real-time waiting.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Violation

type Violation struct {
	// Path identifies the source file within the checked filesystem.
	Path string
	// Line identifies the one-based source line.
	Line int
	// Rule names the deterministic-time rule that was violated.
	Rule string
}

Violation identifies one forbidden real-time wait.

func CheckDir

func CheckDir(ctx context.Context, root string) ([]Violation, error)

CheckDir checks the OS-backed source tree at root while honoring cancellation.

func CheckFS

func CheckFS(ctx context.Context, sources fs.FS) ([]Violation, error)

CheckFS deterministically checks Go source supplied through an injected filesystem.

Jump to

Keyboard shortcuts

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