Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide access to wrapped policies #61

Closed
xenoterracide opened this issue Jun 1, 2022 · 1 comment
Closed

provide access to wrapped policies #61

xenoterracide opened this issue Jun 1, 2022 · 1 comment
Milestone

Comments

@xenoterracide
Copy link

it looks like this is a closure, but it would be nice to have a way to get access to the policies on a wrapped policy. This however also seems naughty... my reasoning though is that I would like to check in unit tests that a new retry is being returned by my method that creates the policy in the first place, and that the other policies are singletons. I'd be ok with it requiring you to poke the internals a little by accessing it via an object key. I also understand if you can't/don't want to do this.

@xenoterracide xenoterracide changed the title provide access to a wrapped policies provide access to wrapped policies Jun 1, 2022
@connor4312
Copy link
Owner

I think this is a good idea -- also useful for introspection/telemetry if a policy is passed down to a nested consumer

@connor4312 connor4312 added this to the 3.0 milestone Aug 13, 2022
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

No branches or pull requests

2 participants