Пример #1
0
func ExampleExecution_Execute() {
	Retry := execution.Execution{Count: 1, Interval: 1000, IsLock: true}
	Retry.SetMutex(lock)
	err := Retry.Execute([]string{"ls", "."})
	if err != nil {
		fmt.Println("ERROR", err)
	} else {
		fmt.Println("OK")
	}

	// Output:
	// OK
}