multicall

package
v0.7.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTimeout = errors.New("MultiCall: timeout")

Functions

func MultiCall

func MultiCall(funs []func() error, timeout time.Duration) []error

MultiCall call functions is parallel goroutines with overall timeout. returns array of results and error value

func WrapErrors

func WrapErrors(errs []error) error

func WrapErrorsWithQuorum added in v0.1.0

func WrapErrorsWithQuorum(errs []error, quorum int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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