Skip to content

是否可以再提供一个接口EnsureNWithContext #1

Open
@gotoxu

Description

接口签名:

func (r *Retry) EnsureNWithContext (ctx context.Context, N int, do func() error) error

功能:
同时判断重试次数和context,任意条件满足后即跳出重试并返回

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions