package interrupt_handler
import "github.com/onsi/ginkgo/v2/internal/interrupt_handler"
Index ¶
- Constants
- func SwallowSigQuit()
- type InterruptCause
- type InterruptHandler
- func NewInterruptHandler(timeout time.Duration, client parallel_support.Client) *InterruptHandler
- func (handler *InterruptHandler) ClearInterruptPlaceholderMessage()
- func (handler *InterruptHandler) InterruptMessageWithStackTraces() string
- func (handler *InterruptHandler) SetInterruptPlaceholderMessage(message string)
- func (handler *InterruptHandler) Status() InterruptStatus
- func (handler *InterruptHandler) Stop()
- type InterruptHandlerInterface
- type InterruptStatus
Constants ¶
const ABORT_POLLING_INTERVAL = 500 * time.Millisecond
const TIMEOUT_REPEAT_INTERRUPT_FRACTION_OF_TIMEOUT = 10
Functions ¶
func SwallowSigQuit ¶
func SwallowSigQuit()
Types ¶
type InterruptCause ¶
type InterruptCause uint
const ( InterruptCauseInvalid InterruptCause = iota InterruptCauseSignal InterruptCauseTimeout InterruptCauseAbortByOtherProcess )
func (InterruptCause) String ¶
func (ic InterruptCause) String() string
type InterruptHandler ¶
type InterruptHandler struct {
// contains filtered or unexported fields
}
func NewInterruptHandler ¶
func NewInterruptHandler(timeout time.Duration, client parallel_support.Client) *InterruptHandler
func (*InterruptHandler) ClearInterruptPlaceholderMessage ¶
func (handler *InterruptHandler) ClearInterruptPlaceholderMessage()
func (*InterruptHandler) InterruptMessageWithStackTraces ¶
func (handler *InterruptHandler) InterruptMessageWithStackTraces() string
func (*InterruptHandler) SetInterruptPlaceholderMessage ¶
func (handler *InterruptHandler) SetInterruptPlaceholderMessage(message string)
func (*InterruptHandler) Status ¶
func (handler *InterruptHandler) Status() InterruptStatus
func (*InterruptHandler) Stop ¶
func (handler *InterruptHandler) Stop()
type InterruptHandlerInterface ¶
type InterruptHandlerInterface interface { Status() InterruptStatus SetInterruptPlaceholderMessage(string) ClearInterruptPlaceholderMessage() InterruptMessageWithStackTraces() string }
type InterruptStatus ¶
type InterruptStatus struct { Interrupted bool Channel chan interface{} Cause InterruptCause }
Source Files ¶
interrupt_handler.go sigquit_swallower_windows.go
- Version
- v2.0.0-rc3
- Published
- Dec 17, 2021
- Platform
- windows/amd64
- Imports
- 9 packages
- Last checked
- 3 days ago –
Tools for package owners.