utils

package
v0.29.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 3 Imported by: 0

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

type TimeoutPolicy time.Duration

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL