timer

package
v3.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: Apache-2.0 Imports: 1 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

Client is an empty timer client.

func (*Client) After

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

After is wrapper to time.After().

func (*Client) Tick

func (t *Client) Tick(d time.Duration) <-chan time.Time

Tick is wrapper to time.Tick().

type Timer

type Timer interface {
	Tick(d time.Duration) <-chan time.Time
	After(d time.Duration) <-chan time.Time
}

Timer interface

Jump to

Keyboard shortcuts

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