Publish publishes an item to the worker pool to be processed. Publish may spawn a worker in order to fullfil the work load. Publish does not block.
(ctx context.Context, item T)
| 63 | // Publish may spawn a worker in order to fullfil the work load. |
| 64 | // Publish does not block. |
| 65 | Publish(ctx context.Context, item T) error |
| 66 | |
| 67 | // Wait blocks until all workers have been closed. |
| 68 | Wait() |
no outgoing calls