background

package
v3.43.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyClosed = xerrors.Wrap(errors.New("ydb: background worker already closed"))
)

Functions

This section is empty.

Types

type CallbackFunc added in v3.38.4

type CallbackFunc func(ctx context.Context)

type Worker

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

A Worker must not be copied after first use

func NewWorker

func NewWorker(parent context.Context) *Worker

func (*Worker) Close

func (b *Worker) Close(ctx context.Context, err error) error

func (*Worker) CloseReason added in v3.38.0

func (b *Worker) CloseReason() error

func (*Worker) Context

func (b *Worker) Context() context.Context

func (*Worker) Done

func (b *Worker) Done() <-chan struct{}

func (*Worker) Start

func (b *Worker) Start(name string, f CallbackFunc)

Jump to

Keyboard shortcuts

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