Compare commits

..

1 Commits
v0.5.0 ... main

Author SHA1 Message Date
5c2379c6d3 docs: updates readme
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2022-05-17 13:48:16 +02:00

View File

@ -34,13 +34,13 @@ var ErrInWorker = errors.New("received error in worker")
Dispatcher carries the job queue, the errgroup and the number of workers Dispatcher carries the job queue, the errgroup and the number of workers
to start. to start.
#### func (*Dispatcher) [Append](/workgroups.go#L113) #### func (*Dispatcher) [Append](/workgroups.go#L114)
`func (d *Dispatcher) Append(job Job)` `func (d *Dispatcher) Append(job Job)`
Append adds a job to the work queue. Append adds a job to the work queue.
#### func (*Dispatcher) [Close](/workgroups.go#L119) #### func (*Dispatcher) [Close](/workgroups.go#L120)
`func (d *Dispatcher) Close()` `func (d *Dispatcher) Close()`
@ -52,7 +52,7 @@ Close closes the queue channel.
Start starts the configured number of workers and waits for jobs. Start starts the configured number of workers and waits for jobs.
#### func (*Dispatcher) [Wait](/workgroups.go#L125) #### func (*Dispatcher) [Wait](/workgroups.go#L126)
`func (d *Dispatcher) Wait() error` `func (d *Dispatcher) Wait() error`