Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CancelFunc ¶
type CancelFunc = context.CancelCauseFunc
func BootstrapSoftCancel ¶
func BootstrapSoftCancel() (context.Context, CancelFunc)
func NewSoftCancel ¶
NewSoftCancel See softCancel.New
func WithCancelCause ¶
func WithCancelCause(parent context.Context) (context.Context, CancelFunc)
type CancellableContext ¶
type CancellableContext struct { // Parent is used for Value() Parent context.Context // Cancel is used to inherit cancellation Cancel context.Context }
func (CancellableContext) Done ¶
func (c CancellableContext) Done() <-chan struct{}
func (CancellableContext) Err ¶
func (c CancellableContext) Err() error
func (CancellableContext) Value ¶
func (c CancellableContext) Value(key interface{}) interface{}
type SignalCause ¶
type SignalCause struct {
// contains filtered or unexported fields
}
func (SignalCause) Error ¶
func (s SignalCause) Error() string
Click to show internal directories.
Click to hide internal directories.