@yesstudio/nuxt-composables
    Preparing search index...

    Type Alias UseAsyncComputedEffect<T>

    UseAsyncComputedEffect: (onCancel: (callback: () => void) => void) => Promise<T>

    Represents an asynchronous effect that computes a value and provides a mechanism for cancellation.

    Type Parameters

    • T

      The type of the computed value.

    Type Declaration

      • (onCancel: (callback: () => void) => void): Promise<T>
      • Parameters

        • onCancel: (callback: () => void) => void

          A function to register a callback for cancellation.

        Returns Promise<T>

        A promise that resolves with the computed value.