1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-09 23:22:28 +08:00

perf(retry): the error returned by the Retry function contains the last error (#315)

This commit is contained in:
残念
2025-06-23 11:04:54 +08:00
committed by GitHub
parent c176ba378e
commit a97d27c32e
3 changed files with 8 additions and 5 deletions

View File

@@ -118,7 +118,7 @@ func ExampleRetryTimes() {
}
// Output:
// function retry.ExampleRetryTimes.func1 run failed after 2 times retry
// function retry.ExampleRetryTimes.func1 run failed after 2 times retry, last error: error occurs
}
func ExampleRetry() {