IsRunning returns whether the processor is currently running. Returns: - bool: True if the processor is running.
()
| 136 | // Returns: |
| 137 | // - bool: True if the processor is running. |
| 138 | func (p *LineageOutboxProcessor) IsRunning() bool { |
| 139 | p.mu.Lock() |
| 140 | defer p.mu.Unlock() |
| 141 | return p.running |
| 142 | } |
| 143 | |
| 144 | // run is the main processing loop. |
| 145 | func (p *LineageOutboxProcessor) run(ctx context.Context) { |