Skip to content

LocalDataStore.exclusive method

LocalDataStore › exclusive

Serializes a shared-store operation across connections, windows and bundled library copies.

Signature:

exclusive(callback: () => Promise<T>): Promise<T>

Parameters:

ParameterTypeDescription
callback() => Promise<T>Work performed while holding this database's Web Lock.

Returns: Promise<T> — The callback result after releasing the lock.