package background
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/background"
Index ¶
- Variables
- type CallbackFunc
- type Worker
- func NewWorker(parent context.Context, name string) *Worker
- func (b *Worker) Close(ctx context.Context, err error) error
- func (b *Worker) CloseReason() error
- func (b *Worker) Context() context.Context
- func (b *Worker) Done() <-chan struct{}
- func (b *Worker) Start(name string, f CallbackFunc)
- func (b *Worker) StopDone() <-chan empty.Struct
Variables ¶
Types ¶
type CallbackFunc ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
A Worker must not be copied after first use
func NewWorker ¶
func (*Worker) Close ¶
func (*Worker) CloseReason ¶
func (*Worker) Context ¶
func (*Worker) Done ¶
func (b *Worker) Done() <-chan struct{}
func (*Worker) Start ¶
func (b *Worker) Start(name string, f CallbackFunc)
func (*Worker) StopDone ¶
Source Files ¶
- Version
- v3.92.6
- Published
- Nov 19, 2024
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 6 minutes ago –
Tools for package owners.