gomaxprocs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceActivity

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

ServiceActivity implements the async.Runner & Closer interface for setting GOMAXPROCS properly in a containerized environment.

func New

func New() *ServiceActivity

New creates a new gomaxprocs service activity

func (*ServiceActivity) Close

func (s *ServiceActivity) Close(_ context.Context) error

Close closes the gomaxprocs service activity

func (*ServiceActivity) Run

func (s *ServiceActivity) Run(ctx context.Context) error

Run runs the gomaxprocs service activity

Jump to

Keyboard shortcuts

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