mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
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:
parent
bfeabfd3d5
commit
9afb23532c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user