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.
Optional
argsArguments for the command.
Optional
assignedTask 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.
Optional
onCallback for async command events.
Progress value (0.0 to 1.0).
Optional
promisePromise 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').
Optional
args: anyArguments for the command.
Optional
callback: AsyncCommandEventCallbackCallback for command events.
Optional
cancellationToken: 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