timeout

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager handles timeout operations for extension loading and initialization

func NewManager

func NewManager(cfg *config.Config) (*Manager, error)

NewManager creates a new timeout manager

func (*Manager) WithDependencyTimeout

func (tm *Manager) WithDependencyTimeout(ctx context.Context, fn func(context.Context) error) error

WithDependencyTimeout executes function with dependency resolution timeout

func (*Manager) WithInitTimeout

func (tm *Manager) WithInitTimeout(ctx context.Context, fn func(context.Context) error) error

WithInitTimeout executes function with initialization timeout

func (*Manager) WithLoadTimeout

func (tm *Manager) WithLoadTimeout(ctx context.Context, fn func(context.Context) error) error

WithLoadTimeout executes function with load timeout

Jump to

Keyboard shortcuts

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