Type Alias OnProgressListener

OnProgressListener: ((amountProcessed: number, totalToProcess: number) => Promise<void> | null | void)

Returns a Promise to indicate that the event source should pause until the Promise resolves. Returns null to continue loading without pause. [totalToProcess] can be an estimate and may change if a better estimate becomes available.

OpenSource licenses