Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessResult ¶
ProcessResult is the result of a list of jobs, the hasError flag indicates if any job has failed.
func (*ProcessResult) GetErrors ¶ added in v0.2.0
func (p *ProcessResult) GetErrors() (errs []error)
GetErrors return all errors from failed jobs, it uses HasError flag to minimize allocations on getting errors
type Processor ¶
type Processor[I any, O any] interface { Process([]I) ProcessResult Close() }
Processor is a generic interface to process asynchronously a list of inputs.
Click to show internal directories.
Click to hide internal directories.