retry:另一个猎犬\ o 源码
重试 描述 另一个检索器\ o / 安装 go get -u github.com/vthiery/retry 用法 package main import ( "context" "errors" "fmt" "time" "github.com/vthiery/retry" ) var nonRetryableError = errors . New ( "a non-retryable error" ) func main () { // Define the retry strategy, with 10 attempts and an exponential backoff retry := retry . New ( retry . WithMaxAttempts ( 10 ), retry . WithBackoff ( retry . NewEx
文件列表
retry-master.zip
(预估有个14文件)
retry-master
backoff_test.go
3KB
retry.go
3KB
.github
dependabot.yml
144B
workflows
golangci.yml
268B
test.yml
461B
LICENSE
1KB
backoff.go
2KB
暂无评论