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

    Interface IAsyncCommandHandler

    Interface for async command handlers. Provides methods to start, handle, pause, resume, and cancel commands.

    interface IAsyncCommandHandler {
        _tick(delta: number): void;
        cancelCommand(command: AsyncCommand): void;
        handleCommand(command: AsyncCommand): void;
        pauseCommand(command: AsyncCommand): void;
        resumeCommand(command: AsyncCommand): void;
        start(numberOfTasksInPool: number): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Methods

    • Starts the handler with a specified number of tasks in the pool.

      Parameters

      • numberOfTasksInPool: number

        Number of tasks to initialize.

      Returns void