i2 Connect SDK
Search results for

    Show/hide table of contents

    Home > @i2analyze/i2connect > asyncState

    asyncState() function

    The @asyncState decorator, which configures a service method parameter to receive an IAsyncState object.

    Signature:

    export declare function asyncState(): ParameterDecorator;
    

    Returns:

    ParameterDecorator

    Introduced: API version 1.0

    Remarks

    The IAsyncState interface provides access to additional communication between the connector and the client.

    For example, the connector can call IAsyncState.isCanceled to determined whether the user has canceled the query. The connector can also set substatuses to provide detailed feedback to the user about a long-running query.

    In this article
    Back to top © N. Harris Computer Corporation (2022)