Documentation ¶
Overview ¶
Package context2 contains utilities for contexts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCustomCancel ¶
WithCustomCancel creates a new context that can be cancelled with a custom error.
func WithRetimeout ¶
func WithRetimeout(ctx context.Context, duration time.Duration) (context.Context, context.CancelFunc)
WithRetimeout allows to create a new timeout for a potentially cancelled context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.