package
0.0.0-20241219150934-9249a2757f07
Repository: https://github.com/smart-core-os/sc-golang.git
Documentation: pkg.go.dev

# Functions

Execute runs all members according to the provided strategy.
ExecuteAll executes all the member functions in parallel, if any return errors then this will return the first reported error.
ExecuteAny executes all the member functions in parallel, if all the members error then this will return the first reported error.
ExecuteFast executes all the member functions in parallel, the first non-err response from a member is returned.
ExecuteMost executes all the member functions in parallel, if more than half of the members error then this will return the first reported error.
ExecuteOne executes the first member, if it fails, executes the next, etc.
ExecuteRace executes all the member functions in parallel, the first response from a member is returned.
ExecuteUpTo executes all the member functions in parallel, if more than allowedErrors members return errors then this will return the first reported error.

# Constants

Execute all, return first error if any fail.
Execute all, return first error if all fail.
Execute all, return first to successfully respond or first error if all fail.
Execute all, return first error if most fail.
Execute one, if fail, try the next, return first error if all fail.
Execute all, return first to respond even if it errors.
Implementation will chose a strategy.

# Type aliases

ExecutionStrategy defines the possible methods for combining a collection of operations into one result.
Member defines some action to be taken as part of a group.