PublisherWithInitialDelay sets the initial delay for the publisher.
(initialDelay time.Duration)
| 117 | |
| 118 | // PublisherWithInitialDelay sets the initial delay for the publisher. |
| 119 | func PublisherWithInitialDelay(initialDelay time.Duration) TallymanPublisherOption { |
| 120 | return func(p *tallymanPublisher) { |
| 121 | p.initialDelay = initialDelay |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | // Start implements Publisher. |
| 126 | func (p *tallymanPublisher) Start() error { |
no outgoing calls