package repeater

import "github.com/ydb-platform/ydb-go-sdk/v3/internal/repeater"

Index

Functions

func WithInterval

func WithInterval(interval time.Duration) option

func WithName

func WithName(name string) option

func WithTrace

func WithTrace(trace trace.Driver) option

Types

type Repeater

type Repeater interface {
	Stop()
	Force()
}

func New

func New(
	ctx context.Context,
	task func(ctx context.Context) (err error),
	opts ...option,
) Repeater

New creates and begins to execute task periodically.

Source Files

repeat.go

Version
v3.24.2
Published
Apr 28, 2022
Platform
linux/amd64
Imports
3 packages
Last checked
4 minutes ago

Tools for package owners.