Bug 1917454 - Adjust documentation for QuotaManager::OpenClientDirectory; r=dom-storage-reviewers,jari

Differential Revision: https://phabricator.services.mozilla.com/D220419
This commit is contained in:
Jan Varga 2024-09-16 11:01:23 +00:00
parent bfeabfd3d5
commit 9afb23532c

View File

@ -288,7 +288,10 @@ class QuotaManager final : public BackgroundThreadObject {
// while they are still in use.
// After a lock is acquired, client is notified by resolving the returned
// promise. If the lock couldn't be acquired, client is notified by rejecting
// the returned promise.
// the returned promise. The returned lock could have been invalidated by a
// clear operation so consumers are supposed to check that and eventually
// release the lock as soon as possible (this is usually not needed for short
// lived operations).
// A lock is a reference counted object and at the time the returned promise
// is resolved, there are no longer other strong references except the one
// held by the resolve value itself. So it's up to client to add a new