Type alias OnProgressListener
OnProgressListener: ((amountProcessed, totalToProcess) => Promise<void> | null | void)
Type declaration
- (amountProcessed, totalToProcess): Promise<void> | null | void
Parameters
amountProcessed: number
totalToProcess: number
Returns 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.