bgmngr

package
v0.0.0-...-0494513 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackgroundContextFrom

func BackgroundContextFrom(ctx context.Context) context.Context

BackgroundContextFrom copies all values from the context. Such a context can be used to run background tasks, as it does not contain deadlines and cannot be canceled by the parent context.

func NotifyWhenCompleted

func NotifyWhenCompleted(ctx context.Context) (context.Context, <-chan struct{})

Types

type Manager

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

func (*Manager) RunBackgroundTask

func (m *Manager) RunBackgroundTask(ctx context.Context, f func(context.Context))

func (*Manager) Wait

func (m *Manager) Wait()

Jump to

Keyboard shortcuts

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