countdown

package
v0.1.2-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wait

func Wait(cd ...*Countdown) error

Wait wait for multiple countdowns to finish

Types

type Countdown

type Countdown struct {
	// contains filtered or unexported fields
}

func New

func New(from int, timeout ...time.Duration) *Countdown

func NewNamed

func NewNamed(name string, from int, timeout ...time.Duration) *Countdown

func (*Countdown) Tick

func (c *Countdown) Tick()

func (*Countdown) Wait

func (c *Countdown) Wait() error

Jump to

Keyboard shortcuts

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