task

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 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 BackgroundTaskManager

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

BackgroundTaskManager is not threadsafe, it should only be accessed from a single thread.

func NewBackgroundTaskManager

func NewBackgroundTaskManager(metricsPrefix string) *BackgroundTaskManager

func (*BackgroundTaskManager) Register

func (m *BackgroundTaskManager) Register(backgroundTask func(), interval time.Duration, metricName string)

func (*BackgroundTaskManager) StopAll

func (m *BackgroundTaskManager) StopAll(timeout time.Duration) bool

Jump to

Keyboard shortcuts

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