LockGrantedCallback Delegate

The callback of LockManager.Request (https://w3c.github.io/web-locks/#callbackdef-lockgrantedcallback): the lock is held until the returned task completes.

public delegate Task<object?> LockGrantedCallback(WebLock? @lock)

Parameters

lock WebLock?
The granted lock; null when the lock is not available and the LockOptions.IfAvailable option is set.

See also