Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromStopChannel ¶ added in v1.8.0
FromStopChannel creates a new context from a given stop channel.
Types ¶
type Ops ¶
type Ops interface {
// WithTimeout returns a new context with the given timeout that can be canceled with the returned function.
WithTimeout(ctx context.Context, timeout time.Duration) (context.Context, context.CancelFunc)
}
Ops are operations to do with a context. They mimic the functions from the context package.
Click to show internal directories.
Click to hide internal directories.