• Cancellable version of getSoftwareInfos

    Parameters

    • Rest ...args: []

    Returns Promise<{
        nodes?: {
            empty?: boolean;
        };
    }>

    Example

    // In your model
    const data = await getSoftwareInfosWithCancel();

    // Cancel if needed
    getSoftwareInfosWithCancel.cancel();

    // Check if active
    if (getSoftwareInfosWithCancel.isActive()) {
    console.log('Request in progress');
    }

Properties

cancel: (() => void)

Cancel any in-flight request

Type declaration

    • (): void
    • Returns void

getController: (() => undefined | AbortController)

Get the current AbortController

Type declaration

    • (): undefined | AbortController
    • Returns undefined | AbortController

isActive: (() => boolean)

Check if there's an active request

Type declaration

    • (): boolean
    • Returns boolean