Table of Contents

Enum CommandWaitOptions

Namespace
Uncreated.Warfare.Interaction.Commands
Assembly
Uncreated.Warfare.dll

Configures how a CommandWaitTask awaits.

[Flags]
public enum CommandWaitOptions

Fields

AbortOnOtherCommandExecuted = 16

If the user executes another command, it will abort this request.

BlockOriginalExecution = 8

The original command won't execute if it has a body.

Default = ThrowOnCancel | BlockOriginalExecution | AbortOnOtherCommandExecuted

The default configuration for a CommandWaitTask.

None = 0
ThrowOnAbort = 1

A OperationCanceledException will be thrown on cancellation via Abort() or another command being ran if AbortOnOtherCommandExecuted is active.

ThrowOnCancel = 2

A OperationCanceledException will be thrown on cancellation via a CancellationToken.

ThrowOnTimeout = 4

A TimeoutException will be thrown on timeout.