hosanna-ui-docs - v0.9.0
    Preparing search index...

    AsyncCommandHandler manages the lifecycle, execution, and state of asynchronous commands.

    • Distributes commands to a pool of ISGNTask workers.
    • Handles command queueing, cancellation, pausing, resuming, and completion.
    • Integrates with a timer service for periodic queue processing.
    • Implements ITickable for frame-based updates.

    Implements

    Index

    Constructors

    Properties

    commandQueue: AsyncCommand[] = []

    Queue of pending AsyncCommand instances.

    frameCount: number = 0

    Frame counter for queue processing.

    id: string = 'AsyncCommandHandler'

    Handler identifier.

    pausedCommandsById: Map<string, AsyncCommand> = ...

    Map of paused commands by their unique ID.

    queueProcessingFrequency: number = 20

    Frequency (in frames) to process the command queue.

    runningCommandsById: Map<string, AsyncCommand> = ...

    Map of running commands by their unique ID.

    taskCount: number = 1

    Number of tasks in the pool.

    taskRoundRobinIndex: number = 0

    Index for round-robin task assignment.

    tasks: ISGNTask[] = []

    Pool of ISGNTask worker tasks.

    Methods