try

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0, CC-BY-4.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Until

func Until(something func() (end bool, err error), tick, timeout time.Duration) error

Until keeps trying until timeout or there is a result or an error.

Types

type ErrTimeout

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

ErrTimeout is used when the set timeout has been reached.

func (*ErrTimeout) Cause

func (e *ErrTimeout) Cause() error

Cause returns the error that caused ErrTimeout.

func (*ErrTimeout) Error

func (e *ErrTimeout) Error() string

func (*ErrTimeout) Format

func (e *ErrTimeout) Format(s fmt.State, verb rune)

Format implements fmt.Formatter used by Sprint(f) or Fprint(f) etc.

Jump to

Keyboard shortcuts

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