blob: ae78abf64cf8241b4a909897a30752665a5b89cf [file] [log] [blame]
package main
import (
"time"
"bitbucket.org/jonathanoliver/go-disruptor"
)
func consume(barrier disruptor.Barrier, source, sequence *disruptor.Sequence) {
worker := disruptor.NewWorker(barrier, &ConsumerHandler{time.Now()}, source, sequence)
for {
worker.Process()
}
}