Optional
onCalled when the task is complete.
Optional
total: numberThe total amount of progress made. If not provided, it will be assumed to be the same as the last amount.
Optional
onCalled when a non-recoverable error occurs.
Optional
onMay be called periodically to update the progress.
The amount of progress made.
Optional
total: numberIf total is not provided then the amount will be shown
Optional
onWhen a import is started this will be called.
If a promise is returned, it will be awaited before proceeding.
Optional
onIf an recoverable error occurs, this callback will be called with the message.
Interface for tracking long running tasks.