Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Canceled = errors.New("context canceled")
View Source
var DeadlineExceeded = errors.New("deadline exceeded")
Functions ¶
func WithCancel ¶
func WithCancel(parent Context) (Context, CancelFunc)
func WithDeadline ¶
func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc)
func WithTimeout ¶
func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc)
Types ¶
type CancelFunc ¶
type CancelFunc func()
Click to show internal directories.
Click to hide internal directories.