Hosanna UI API v1.30.2-next
    Preparing search index...

    AsyncCommandHandler manages multiple task pools, each with its own AsyncCommandQueue.

    • Distributes commands to appropriate task pools based on command.taskId
    • Creates and manages multiple AsyncCommandQueue instances (one per task pool)
    • Handles command routing, cancellation, pausing, resuming, and completion
    • Integrates with a timer service for periodic queue processing
    • Implements ITickable for frame-based updates

    Implements

    Index

    Constructors

    Properties

    commandQueuesByTaskId: Map<string, AsyncCommandQueue> = ...

    Map of command queues by task pool ID.

    frameCount: number = 0

    Frame counter for queue processing.

    hasCurrentDesignResolution: boolean = false

    Tracks whether lastCurrentDesignResolution has been intentionally set, including undefined.

    id: string = 'AsyncCommandHandler'

    Handler identifier.

    lastCurrentDesignResolution?: IHosannaCurrentDesignResolution

    Last design-resolution transaction seen before or after task creation, replayed into new task pools.

    Last device-info event seen before or after task creation, replayed into new task pools.

    queueProcessingFrequency: number = 20

    Frequency (in frames) to process the command queue.

    Methods

    • Called periodically by the timer service to process all command queues.

      Parameters

      • delta: number

        The time delta since the last tick.

      Returns void

    • Broadcasts a currentDesignResolution transaction to every task queue.

      Parameters

      • update: undefined | IHosannaCurrentDesignResolution

        The design resolution update to apply in task IoC containers.

      Returns void

    • Creates task pools based on configuration, one AsyncCommandQueue per pool.

      Parameters

      Returns void

    • Processes all command queues, dispatching pending commands to tasks.

      Returns void

    • Processes commands that were queued before the handler was initialized.

      Returns void

    • Returns void