Type Alias LoaderProgressDialogRun<T>

LoaderProgressDialogRun: (
    onProgress: (p: LoaderProgress) => void,
    signal: AbortSignal,
) => Promise<T>

Function the consumer hands to LoaderProgressDialog.runWith. Receives a progress callback wired to the dialog's bar / phase label, and an AbortSignal wired to the Cancel button.

Loaders that respect the cooperative-yield contract pass these straight into ModelLoadOptions.{onProgress, signal} — they're the same shape.

Type Parameters

  • T

Type declaration

    • (onProgress: (p: LoaderProgress) => void, signal: AbortSignal): Promise<T>
    • Parameters

      Returns Promise<T>