Documentation ¶
Overview ¶
Package recontext provides means of obtaining a derived context which ignores parent's deadline, timeout, and cancellation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithNewDeadline ¶
func WithNewDeadline(parent context.Context, deadline time.Time) (context.Context, context.CancelFunc)
WithNewDeadline returns a derived context that will ignore cancellation, deadline, and timeout of the parent context. In order to avoid stuck contexts, new deadline is mandatory.
func WithNewTimeout ¶
func WithNewTimeout(parent context.Context, timeout time.Duration) (context.Context, context.CancelFunc)
WithNewTimeout returns a derived context that will ignore cancellation, deadline, and timeout of the parent context. In order to avoid stuck contexts, new timeout is mandatory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.