Method WaitForFirstSync
WaitForFirstSync(PrioritySyncRequest?)
Wait for the first sync operation to complete.
public Task WaitForFirstSync(PowerSyncDatabase.PrioritySyncRequest? request = null)
Parameters
requestPowerSyncDatabase.PrioritySyncRequestAn object providing a cancellation token and a priority target. When a priority target is set, the task may complete when all buckets with the given (or higher) priorities have been synchronized. This can be earlier than a complete sync.
Returns
- Task
A task which will complete once the first full sync has completed.