File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
packages/common/src/db/crud Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,22 @@ export interface ProgressWithOperations {
5959export class SyncProgress {
6060 constructor ( protected internal : InternalProgressInformation ) { }
6161
62+ /**
63+ * Returns donwload progress towards a complete checkpoint being received.
64+ *
65+ * The returned {@link ProgressWithOperations} tracks the target amount of operations that need
66+ * to be downloaded in total and how many of them have already been received.
67+ */
6268 get untilCompletion ( ) : ProgressWithOperations {
6369 return this . untilPriority ( FULL_SYNC_PRIORITY ) ;
6470 }
6571
72+ /**
73+ * Returns download progress towards all data up until the specified priority being received.
74+ *
75+ * The returned {@link ProgressWithOperations} tracks the target amount of operations that need
76+ * to be downloaded in total and how many of them have already been received.
77+ */
6678 untilPriority ( priority : number ) : ProgressWithOperations {
6779 let total = 0 ;
6880 let downloaded = 0 ;
You can’t perform that action at this time.
0 commit comments