Skip to content

retry: add retry.Typed that returns a value#8

Merged
dfinkel merged 1 commit intomasterfrom
retry_generic
Aug 12, 2022
Merged

retry: add retry.Typed that returns a value#8
dfinkel merged 1 commit intomasterfrom
retry_generic

Conversation

@dfinkel
Copy link
Contributor

@dfinkel dfinkel commented Aug 12, 2022

Add a more ergonomic retry.Typed() function that takes advantage of a
type-parameter to return an arbitrary value plus an error.

Update go.mod and github actions

"github.com/stretchr/testify/assert"
)

func TestRetryGeneric(t *testing.T) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to match the above, should this be TestTyped?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed it should.

Add a more ergonomic `retry.Typed` function that takes advantage of a
type-parameter to return an arbitrary value plus an error.

Update go.mod and github actions
Copy link

@silvenac silvenac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@dfinkel dfinkel merged commit 4c713a4 into master Aug 12, 2022
@dfinkel dfinkel deleted the retry_generic branch August 12, 2022 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants