Skip to content

Commit 03db8cd

Browse files
committed
Doc comments
1 parent 787b963 commit 03db8cd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/common/src/db/crud/SyncProgress.ts

+12
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,22 @@ export interface ProgressWithOperations {
5959
export 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;

0 commit comments

Comments
 (0)