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

Make Latency monkey no cancellable by configuration #52

Open
vany0114 opened this issue Oct 23, 2019 · 0 comments
Open

Make Latency monkey no cancellable by configuration #52

vany0114 opened this issue Oct 23, 2019 · 0 comments
Labels

Comments

@vany0114
Copy link
Member

Currently, all the monkeys are cancellable, which is fine, but we want to allow the user to make the latency monkey no cancellable for those scenarios where even if a token is signaled, they don't want to cancel the latency.

Proposal: add a new property to LatencyOptions/AyncLatencyOptions like this:

internal Func<Context, CancellationToken, Task<bool>> IsCancellable { get; set; }

Might be true by default, then validate it before to honor the token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant