funcutil

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallerName

func CallerName(skip int) string

caller types: runtime.goexit runtime.main main.init main.main main.init·1 -> main.init main.func·001 -> main.func code.google.com/p/gettext-go/gettext.TestCallerName ...

func WaitForSpecificOrError

func WaitForSpecificOrError(f func() (bool, error), timeout time.Duration, waitInterval time.Duration) error

WaitForSpecificOrError wait a function return true or error.

Types

type TimeoutError

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

Reference: https://github.com/yunify/qingcloud-sdk-go/blob/f1702ea44452e2d6b6048608c070237cd45088d6/utils/wait.go TimeoutError An Error represents a timeout error.

func NewTimeoutError

func NewTimeoutError(timeout time.Duration) *TimeoutError

NewTimeoutError create a new TimeoutError

func (*TimeoutError) Error

func (e *TimeoutError) Error() string

Error message

func (*TimeoutError) Timeout

func (e *TimeoutError) Timeout() time.Duration

Timeout duration

Jump to

Keyboard shortcuts

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