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

More command result options #1793

Merged
merged 3 commits into from
May 30, 2022
Merged

More command result options #1793

merged 3 commits into from
May 30, 2022

Conversation

julianoes
Copy link
Collaborator

JonasVautherin
JonasVautherin previously approved these changes May 29, 2022
julianoes added 3 commits May 30, 2022 17:14
In order to prevent too many commands from clogging the queue, we remove
them if they look identical.

This changes it so that we only drop a command if it does not come with
a callback. If it has a callback associated with it, it's better to call
it anyway, otherwise odd races or just Denied results when you don't
expect it tend to be the result.
This adds TemporarilyRejected, Failed, and Cancelled to the possible
command sender results.
The command sender now exposes TemporarilyRejected, Failed, and
Cancelled.
Also, the result CommandDenied was renamed to Denied which actually made
the refactoring a little easier as it made the compiler surface all
places where CommandDenied was used, and so where it needed to be
extended with TemporarilyRejected.
@julianoes julianoes force-pushed the pr-command-improvements branch from 1924239 to 6827a29 Compare May 30, 2022 05:14
@julianoes julianoes merged commit db81f5c into main May 30, 2022
@julianoes julianoes deleted the pr-command-improvements branch May 30, 2022 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants