Closed Bug 1783815 Opened 2 years ago Closed 2 years ago

QM: Add DirectoryLock::Acquire overload which returns a MozPromise

Categories

(Core :: Storage: Quota Manager, task, P2)

task

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: janv, Assigned: janv)

References

Details

Attachments

(1 file)

This will allow to asynchronously acquire a directory lock without using a special class which implements nsIRunnable and OpenDirectoryListener (like it's done in all existing quota clients currently).

The goal is to be able to write code like this:

return directoryLock->Acquire()->Then(...);
Pushed by jvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/052ae43a6622
QM: Add DirectoryLock::Acquire overload which returns a MozPromise; r=dom-storage-reviewers,jesup,asuth
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: