promise
promise: Promise<boolean>
Promise that is resolved when the prefetch completes or is cancelled. Await this promise to ensure that the database has been fully downloaded before going offline, for example.
Notes:
- resolves to
true
if the prefetch completed and the entire database is local, orfalse
if it was aborted or failed. - it is not rejected on
cancel
. Some progress may (or may not) have been made by the request. - To monitor the progress being made during prefetch, call
CloudContainer.queryDatabase
periodically.
Defined in
- core/backend/src/CloudSqlite.ts Line 582
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.