github.com/Aoi-hosizora/ahlib@v1.5.1-0.20230404072829-241b93cf91c7/xerror/README.md (about)

     1  # xerror
     2  
     3  ## Dependencies
     4  
     5  + (xtesting)
     6  
     7  ## Documents
     8  
     9  ### Types
    10  
    11  + `type Wrapper interface`
    12  + `type Matcher interface`
    13  + `type Assigner interface`
    14  + `type MultiError interface`
    15  + `type ErrorGroup struct`
    16  
    17  ### Variables
    18  
    19  + `var DefaultExecutor func`
    20  
    21  ### Constants
    22  
    23  + None
    24  
    25  ### Functions
    26  
    27  + `func Combine(errs ...error) error`
    28  + `func Separate(err error) []error`
    29  + `func NewErrorGroup(ctx context.Context) *ErrorGroup`
    30  
    31  ### Methods
    32  
    33  + `func (eg *ErrorGroup) SetGoExecutor(executor func(f func()))`
    34  + `func (eg *ErrorGroup) Go(f func(ctx context.Context) error)`
    35  + `func (eg *ErrorGroup) Reset(ctx context.Context)`
    36  + `func (eg *ErrorGroup) Wait() error`