util

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2014 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RealSleeper

type RealSleeper struct{}

func (RealSleeper) Sleep

func (s RealSleeper) Sleep(d time.Duration)

type RecordingNoopSleeper

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

func NewRecordingNoopSleeper

func NewRecordingNoopSleeper() *RecordingNoopSleeper

func (*RecordingNoopSleeper) Sleep

func (s *RecordingNoopSleeper) Sleep(d time.Duration)

func (*RecordingNoopSleeper) SleptTimes

func (s *RecordingNoopSleeper) SleptTimes() []time.Duration

type Sleeper

type Sleeper interface {
	Sleep(time.Duration)
}

Jump to

Keyboard shortcuts

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