-
Notifications
You must be signed in to change notification settings - Fork 614
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optional "useUnsafeChunkedAsyncGenerator"
if this flag is set to true, pullChanges is expected to be an AsyncGenerator that yields multiple SyncPullResults pullChanges is expected to be an AsyncGenerator that yields multiple SyncPullResults.
- Loading branch information
Showing
4 changed files
with
125 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,3 @@ | ||
import type { SyncArgs } from '../index' | ||
|
||
export default function synchronize({ | ||
database, | ||
pullChanges, | ||
onDidPullChanges, | ||
pushChanges, | ||
sendCreatedAsUpdated, | ||
migrationsEnabledAtVersion, | ||
log, | ||
conflictResolver, | ||
_unsafeBatchPerCollection, | ||
unsafeTurbo, | ||
}: SyncArgs): Promise<void> | ||
export default function synchronize(params: SyncArgs): Promise<void> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters