common

package
v0.0.0-...-d809d1c Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackgroundTask

type BackgroundTask struct {
	Tasks int
	// contains filtered or unexported fields
}

func NewBackgroundTask

func NewBackgroundTask() *BackgroundTask

func (*BackgroundTask) GetShtdwnCtx

func (bt *BackgroundTask) GetShtdwnCtx() context.Context

func (*BackgroundTask) Run

func (bt *BackgroundTask) Run(fn func(shtdwnCtx context.Context))

func (*BackgroundTask) Shutdown

func (bt *BackgroundTask) Shutdown(timeout time.Duration) error

Jump to

Keyboard shortcuts

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