Skip to content

Could we choose the cancel exception when calling Mutex.cancel() #89

@krassowski

Description

@krassowski

This is a proposal for a slight expansion of the API by allowing to configure the error thrown not only in the constructor but also as an argument to cancel(). This would allow the exception handler to enter different branches depending on what logic cancelled the mutex, which I find highly valuable.

What do you think?

Metadata

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