Table of Contents

Method ReadLock

Namespace
PowerSync.Common.MDSQLite
Assembly
PowerSync.Common.dll

ReadLock<T>(Func<ILockContext, Task<T>>, DBLockOptions?)

Executes a read lock with the given function.

public Task<T> ReadLock<T>(Func<ILockContext, Task<T>> fn, DBLockOptions? options = null)

Parameters

fn Func<ILockContext, Task<T>>
options DBLockOptions

Returns

Task<T>

Type Parameters

T