Home > flowp > Progress > onProgress
Progress.onProgress() method
>e; This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment. >e;
register a listener on progress report, and use the returned function to cancel listening.
listeners won't receive messages on progress rejection
Signature:
onProgress(listener: (progress: Readonly<CurrentProgress>) => unknown): () => boolean;
Parameters
Parameter | Type | Description |
---|---|---|
listener | (progress: Readonly<CurrentProgress>) => unknown |
Returns:
() => boolean