delay

package
v0.3.11-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type D

type D interface {
	Set(time.Duration) time.Duration
	Wait()
	Get() time.Duration
}

Delay makes it easy to add (threadsafe) configurable delays to other objects.

func Fixed

func Fixed(t time.Duration) D

Fixed returns a delay with fixed latency

Jump to

Keyboard shortcuts

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