Closed Bug 804108 Opened 12 years ago Closed 12 years ago

Promise-based API for async mozStorage

Categories

(Toolkit :: Storage, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 813833

People

(Reporter: Yoric, Unassigned)

References

Details

Attachments

(1 file)

Promises are a very dev-friendly API for writing async code, especially when combined with Task.js (see e.g. http://dutherenverseauborddelatable.wordpress.com/2012/10/18/beautiful-off-main-thread-file-io/ ). I believe that it would be a good idea to provide a promise-based API for async mozStorage.
I am willing to mentor this, by the way, once we have decided of an acceptable API.
Flags: needinfo?(mak77)
which kind of info do you need, I'm not sure which kind of API you're evaluating.
Flags: needinfo?(mak77)
Attached patch First draftSplinter Review
Marco: The idea was to get you on board for this design.
Here is a first draft.
Attachment #673956 - Flags: feedback?(mak77)
Looks like gps beat me to it.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Comment on attachment 673956 [details] [diff] [review]
First draft

let's unify efforts there then, good that both of you are quite expert on async stuff!
Attachment #673956 - Flags: feedback?(mak77)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: