Constructs a new AsyncCommand and assigns a unique ID.
Internal async token for cancellation or tracking.
IReusable implementation: cache key for pooling.
The handler name for the command, derived from the command string.
Internal unique identifier for the command.
The scope of the command, derived from the command string.
OptionalargsArguments for the command.
OptionalassignedTask assigned to this command, if any.
Injected async command handler.
Callback for command completion or progress.
The command string, e.g., 'scope.command'.
Unique identifier for the command.
OptionalonCallback for async command events.
Progress value (0.0 to 1.0).
OptionalpromisePromise associated with the command's async operation.
Result of the command execution.
Current state of the command.
Cancels the command.
Dispatches the command for execution.
The command string (e.g., 'scope.handler').
Optionalargs: anyArguments for the command.
Optionalcallback: AsyncCommandEventCallbackCallback for command events.
OptionalcancellationToken: HsCancellationTokenOptional cancellation token.
Returns a plain object representing the command for task assignment.
The async command object.
Called before the command is released back to the pool.
Called before the command is reused from the pool.
Pauses the command.
Resumes the command.
Represents an asynchronous command with lifecycle management.
Remarks