Table of Contents

Method WaitForFirstSync

Namespace
PowerSync.Common.Client
Assembly
PowerSync.Common.dll

WaitForFirstSync(PrioritySyncRequest?)

Wait for the first sync operation to complete.

public Task WaitForFirstSync(PowerSyncDatabase.PrioritySyncRequest? request = null)

Parameters

request PowerSyncDatabase.PrioritySyncRequest

An 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.