processwatch

package
v0.0.0-...-e49a3f0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsProcessRunning

func IsProcessRunning(pid uint) bool

Types

type Watcher

type Watcher struct {
	Interval time.Duration
	OnExit   func()
	Pid      uint
	// contains filtered or unexported fields
}

func New

func New(pid uint, interval time.Duration, onExit func()) *Watcher

func NewExiter

func NewExiter(pid uint) *Watcher

func (*Watcher) Start

func (w *Watcher) Start()

Jump to

Keyboard shortcuts

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