Help us shape the future of Go! Take the 2026 Go Developer Survey

time

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Every

func Every(d time.Duration) <-chan time.Time

Every will send the time with a period specified by the duration argument. It id equivalent to time.NewTicker(d).C It adjusts the intervals or drops ticks to make up for slow receivers. The duration d must be greater than zero; if not, NewTicker will panic. If efficiency is a concern, use NewTicker and call Ticker.Stop if the ticker is no longer needed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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