wait

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunEvent

func RunEvent(ctx context.Context, event chan struct{}, fc func())

RunEvent run fc when event chan receive data

func RunUntil

func RunUntil(ctx context.Context, log logrus.FieldLogger, interval time.Duration, fc func() error) error

RunUntil run fc period until ctx is done

Types

This section is empty.

Jump to

Keyboard shortcuts

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