wait

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Until

func Until(done chan error) error

Until iterates over buffered error channel and: * upon receiving non-nil value from the channel, makes an early return with this value * if no non-nil values were received from iteration over the channel, it just returns nil Used to wait for a series of goroutines, launched altogether from the same loop, to finish.

func WithTolerance added in v1.0.64

func WithTolerance(done chan error) error

WithTolerance is the same as Until, but it does not return immediately on errors rather loops through all channel capacity returning "composite" error in the end.

Types

This section is empty.

Jump to

Keyboard shortcuts

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