timeout

package
v0.0.101 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(args []string) error

Types

type ExitCodeError

type ExitCodeError struct {
	ExitCode int
}

func (*ExitCodeError) Error

func (e *ExitCodeError) Error() string

func (*ExitCodeError) SilenceExitCode

func (e *ExitCodeError) SilenceExitCode() int

type InterruptError

type InterruptError struct {
	Signal os.Signal
}

func (*InterruptError) Error

func (e *InterruptError) Error() string

func (*InterruptError) SilenceExitCode

func (e *InterruptError) SilenceExitCode() int

type TimeoutError

type TimeoutError struct {
	Duration time.Duration
	Command  string
}

func (*TimeoutError) Error

func (e *TimeoutError) Error() string

func (*TimeoutError) SilenceExitCode

func (e *TimeoutError) SilenceExitCode() int

Jump to

Keyboard shortcuts

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