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

    Interface for async command manager. Provides methods to complete or cancel async commands.

    interface IAsyncManager {
        taskId: string;
        taskNode: ISGNTask;
        cancelCommand(commandId: string): void;
        completeCommandWithEvent(event: IAsyncEvent<any>): void;
    }

    Implemented by

    Index

    Properties

    taskId: string

    The task ID extracted from taskNode.id (e.g., "analytics-1", "default-0").

    taskNode: ISGNTask

    Methods

    • Cancels a command by its ID.

      Parameters

      • commandId: string

        The ID of the command to cancel.

      Returns void

    • Completes a command with the given event.

      Parameters

      • event: IAsyncEvent<any>

        The async event to complete the command with.

      Returns void