Documentation
¶
Overview ¶
Package scope implements a simplified and more convenient API for creating context.Context values with often used functionality like timeouts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cancelable ¶
Cancelable will create a fresh context not part of any preceding chain of values, and includes a Cancel function.
func TTL ¶
TTL will create a fresh context not part of any preceding chain of values, and will expire after the given duration.
func WithCancel ¶
WithCancel wraps an existing Context with a Cancel function.
Types ¶
Click to show internal directories.
Click to hide internal directories.