Is there any idea to display the progress information when the data is synchronized?
I need to use TypeScript (Node.js) to implement a library for data synchronization. The logic diagram is as follows: If we directly execute according to this logic, the synchronization can be completed. However, there is a requirement: We need feedback on the synchronization progress. So the requirement represented by this circle here is to collect three types of synchronized data, which can be used to display the synchronization progress in real - time during the execution process. I don't know how to implement this requirement. Could you please guide and give me some pointers on how to achieve it?

I need to use TypeScript (Node.js) to implement a library for data synchronization.
The logic diagram is as follows:
If we directly execute according to this logic, the synchronization can be completed. However, there is a requirement: We need feedback on the synchronization progress.
So the requirement represented by this circle here is to collect three types of synchronized data, which can be used to display the synchronization progress in real - time during the execution process. I don't know how to implement this requirement. Could you please guide and give me some pointers on how to achieve it?