Documentation ¶ Index ¶ func Context(ctx context.Context) context.Context func NotifyWhenCompleted(ctx context.Context) (context.Context, <-chan struct{}) type Manager func (m *Manager) RunBackgroundTask(ctx context.Context, f func(context.Context)) func (m *Manager) Wait() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Context ¶ func Context(ctx context.Context) context.Context Context 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() Source Files ¶ View all Source files context.go manager.go Click to show internal directories. Click to hide internal directories.