File tree 1 file changed +12
-0
lines changed
packages/common/src/db/crud
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,22 @@ export interface ProgressWithOperations {
59
59
export class SyncProgress {
60
60
constructor ( protected internal : InternalProgressInformation ) { }
61
61
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
+ */
62
68
get untilCompletion ( ) : ProgressWithOperations {
63
69
return this . untilPriority ( FULL_SYNC_PRIORITY ) ;
64
70
}
65
71
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
+ */
66
78
untilPriority ( priority : number ) : ProgressWithOperations {
67
79
let total = 0 ;
68
80
let downloaded = 0 ;
You can’t perform that action at this time.
0 commit comments