blob: 44822be8e10fe6210d4bd5d882e6a617d4001539 [file] [log] [blame]
package disruptor
import "time"
type DefaultWaitStrategy struct{}
func NewWaitStrategy() DefaultWaitStrategy { return DefaultWaitStrategy{} }
func (this DefaultWaitStrategy) Gate(count int64) { time.Sleep(time.Nanosecond) }
func (this DefaultWaitStrategy) Idle(count int64) { time.Sleep(time.Microsecond * 50) }