Enum CommandWaitOptions
- Namespace
- Uncreated.Warfare.Interaction.Commands
- Assembly
- Uncreated.Warfare.dll
Configures how a CommandWaitTask awaits.
[Flags]
public enum CommandWaitOptions
Fields
AbortOnOtherCommandExecuted = 16If the user executes another command, it will abort this request.
BlockOriginalExecution = 8The original command won't execute if it has a body.
Default = ThrowOnCancel | BlockOriginalExecution | AbortOnOtherCommandExecutedThe default configuration for a CommandWaitTask.
None = 0ThrowOnAbort = 1A OperationCanceledException will be thrown on cancellation via Abort() or another command being ran if AbortOnOtherCommandExecuted is active.
ThrowOnCancel = 2A OperationCanceledException will be thrown on cancellation via a CancellationToken.
ThrowOnTimeout = 4A TimeoutException will be thrown on timeout.