Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAborted = errors.New("worker was aborted")
View Source
var ErrCantAbort = errors.New("worker can't be aborted: not supported")
Functions ¶
func NewRequestsChannelWaiter ¶
func NewRequestsChannelWaiter() *requestsChannelWaiter
Types ¶
type WorkerPool ¶
type WorkerPool interface { // Add new worker, can be called any time. Add(worker Worker) error // Process requests from channel. DoAll(requests <-chan service.Request) error // Finish all consumed requests, do not process new requests. Cancel() error // Abort everything now, drop consumed requests. Abort() error }
func NewWorkerPool ¶
func NewWorkerPool() WorkerPool
Directories ¶
Path | Synopsis |
---|---|
Package protocol is a generated protocol buffer package.
|
Package protocol is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.