Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Default ¶
func Default() (Context, CancelFunc)
func WithSignal ¶
func WithSignal(sig ...os.Signal) (Context, CancelFunc)
Types ¶
type CancelFunc ¶
type CancelFunc context.CancelFunc
type Context ¶
type Context interface { context.Context Go(func(ctx Context) error) Wait() error CancelSub() WithCancel() (Context, CancelFunc) WithTimeout(timeout time.Duration) (Context, CancelFunc) WithDeadline(d time.Time) (Context, CancelFunc) WithValue(key, val interface{}) (Context, CancelFunc) }
func Background ¶
func Background() Context
Click to show internal directories.
Click to hide internal directories.