package interrupt_handler
import "github.com/onsi/ginkgo/v2/internal/interrupt_handler"
Index ¶
- Variables
- func SwallowSigQuit()
- type InterruptCause
- type InterruptHandler
- func NewInterruptHandler(client parallel_support.Client, signals ...os.Signal) *InterruptHandler
- func (handler *InterruptHandler) Status() InterruptStatus
- func (handler *InterruptHandler) Stop()
- type InterruptHandlerInterface
- type InterruptLevel
- type InterruptStatus
Variables ¶
var ABORT_POLLING_INTERVAL = 500 * time.Millisecond
Functions ¶
func SwallowSigQuit ¶
func SwallowSigQuit()
Types ¶
type InterruptCause ¶
type InterruptCause uint
const ( InterruptCauseInvalid InterruptCause = iota InterruptCauseSignal InterruptCauseAbortByOtherProcess )
func (InterruptCause) String ¶
func (ic InterruptCause) String() string
type InterruptHandler ¶
type InterruptHandler struct {
// contains filtered or unexported fields
}
func NewInterruptHandler ¶
func NewInterruptHandler(client parallel_support.Client, signals ...os.Signal) *InterruptHandler
func (*InterruptHandler) Status ¶
func (handler *InterruptHandler) Status() InterruptStatus
func (*InterruptHandler) Stop ¶
func (handler *InterruptHandler) Stop()
type InterruptHandlerInterface ¶
type InterruptHandlerInterface interface { Status() InterruptStatus }
type InterruptLevel ¶
type InterruptLevel uint
const ( InterruptLevelUninterrupted InterruptLevel = iota InterruptLevelCleanupAndReport InterruptLevelReportOnly InterruptLevelBailOut )
type InterruptStatus ¶
type InterruptStatus struct { Channel chan any Level InterruptLevel Cause InterruptCause }
func (InterruptStatus) Interrupted ¶
func (s InterruptStatus) Interrupted() bool
func (InterruptStatus) Message ¶
func (s InterruptStatus) Message() string
func (InterruptStatus) ShouldIncludeProgressReport ¶
func (s InterruptStatus) ShouldIncludeProgressReport() bool
Source Files ¶
interrupt_handler.go sigquit_swallower_unix.go
- Version
- v2.23.4 (latest)
- Published
- Apr 6, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 15 hours ago –
Tools for package owners.