periodic/periodic.go
func EveryGo(interval time.Duration, procfunc gp.ProcessFunc) gp.Process {
	return gp.Go(func(proc gp.Process) {
		for {
			select {
			case <-time.After(interval):
				proc.Go(procfunc)
			case <-proc.Closing(): // we're told to close
				return
			}
		}
	})
}
func EveryGo(interval time.Duration, procfunc gp.ProcessFunc) gp.Process {
	return gp.Go(func(proc gp.Process) {
		for {
			select {
			case <-time.After(interval):
				proc.Go(procfunc)
			case <-proc.Closing(): // we're told to close
				return
			}
		}
	})
}
func EveryGo ( interval time . Duration , procfunc gp . ProcessFunc ) gp . Process { return gp . Go ( func ( proc gp . Process ) { for { select { case <- time . After ( interval ) : proc . Go ( procfunc ) case <- proc . Closing ( ) : // we're told to close return } } } ) }
// EveryGo calls the given ProcessFunc at periodic intervals. Internally, it uses
// <-time.After(interval)
// This is not rate limited, multiple calls could be in-flight at the same time.
EveryGo calls the given ProcessFunc at periodic intervals . Internally it uses < - time . After ( interval ) This is not rate limited multiple calls could be in - flight at the same time .