package main import ( "sync" "sync/atomic" "time" ) type GetNumFn func() int type ConditionFn func() bool type IncrementalNumGetter struct { num atomic.Int32 } func (g *IncrementalNumGetter) GetAndIncrease() int { return int(g.num.Add(1)) } func (g *Increment...