package repeater
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/repeater"
Index ¶
- func WithInterval(interval time.Duration) option
- func WithName(name string) option
- func WithTrace(trace trace.Driver) option
- type Repeater
Functions ¶
func WithInterval ¶
func WithName ¶
func WithName(name string) option
func WithTrace ¶
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 ¶
- Version
- v3.19.1
- Published
- Apr 8, 2022
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 4 minutes ago –
Tools for package owners.