Skip to content

Make Latency monkey no cancellable by configuration #52

Description

@vany0114

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions