Documentation ¶
Overview ¶
nolint:nilaway - the context timeout here is reported as an error, even though it is a by-the-doc example
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimeoutPolicy ¶
TimeoutPolicy is an interface for enforcing common timeout patterns
func (*TimeoutPolicy) ExecuteAction ¶
func (tp *TimeoutPolicy) ExecuteAction(action func() error) error
ExecuteAction runs a function and returns an error if it hasn't returned by the time specified by TimeoutPolicy
Click to show internal directories.
Click to hide internal directories.