map.apps Bundle APIs 4.20.0
    Preparing search index...

    Collection containing several QueryExecution.

    interface QueryExecutions {
        executed: boolean;
        executions: QueryExecution<any>[];
        running: boolean;
        start(strategy: QueryExecutionStrategy): Promise<QueryExecutions>;
        startParallel(): Promise<QueryExecutions>;
        startSequential(): Promise<QueryExecutions>;
        waitForExecution(): Promise<QueryExecutions>;
        waitForFirstNonEmptyExecution(): Promise<QueryExecution<any>>;
        watch(property: string, cb: WatchCallback<string, any>): WatchHandle;
    }

    Hierarchy (View Summary)

    Index

    Properties

    executed: boolean

    Indicates that the executions are finished.

    executions: QueryExecution<any>[]

    Array of QueryExecution. Should not be changed after executions are started.

    running: boolean

    Indicates that the executions are still running.

    Methods

    • Function to start all executions parallel.

      Returns Promise<QueryExecutions>

    • Function start all executions sequentially (one after another).

      Returns Promise<QueryExecutions>

    • Helper function to wait until all executions are finished.

      Returns Promise<QueryExecutions>

    • Helper function to wait for the first, non-failed execution result.

      Returns Promise<QueryExecution<any>>

    • Function to watch for changes on a property.

      Parameters

      • property: string

        name of the property to watch

      • cb: WatchCallback<string, any>

        event handler executed on changes

      Returns WatchHandle