ctxticker

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(ctx context.Context, d time.Duration, fn func() error) error

Do calls fn every d until ctx canceled or fn returns with a non-nil error.

func DoNow

func DoNow(ctx context.Context, d time.Duration, fn func() error) error

DoNow is same as Do except it makes +1 call to fn on start.

Types

This section is empty.

Jump to

Keyboard shortcuts

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