halt

package
v0.4.171 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: ISC Imports: 2 Imported by: 0

Documentation

Overview

Package halt detects Go runtime execution halts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HaltDetector

type HaltDetector struct {
	// contains filtered or unexported fields
}

HaltDetector sends detected Go runtime execution halts on channel ch.

func NewHaltDetector

func NewHaltDetector(reportingThreshold ...time.Duration) (haltDetector *HaltDetector)

NewHaltDetector returns an object that sends detected Go runtime execution halts on a channel

func (*HaltDetector) Ch

func (h *HaltDetector) Ch() (ch <-chan *HaltReport)

Ch returns a receive channel for reports of Go rutnime execution halts

  • Ch never closes

func (*HaltDetector) Thread

func (h *HaltDetector) Thread(g0 parl.Go)

Thread detects execution halts and sends them on h.ch

type HaltReport

type HaltReport struct {
	N int           // report number 1…
	T time.Time     // when halt started
	D time.Duration // halt duration
}

HaltReport is a value object representing a detected Go runtime execution halt

Jump to

Keyboard shortcuts

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