actualtime

package
v0.19.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActualTime

type ActualTime struct {
}

ActualTime implements time operations using actual time operations

func (ActualTime) After

func (t ActualTime) After(d time.Duration) <-chan time.Time

After waits for the duration to elapse and then sends the current time on the returned channel

func (ActualTime) Ping

func (t ActualTime) Ping(ctx context.Context, count int, period time.Duration, f func() error) error

Ping repeats an action at regular intervals

Jump to

Keyboard shortcuts

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