New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify docs for IndexedDB add returns a Future that has the key #11401
Comments
Added this to the Later milestone. |
Sending over to Mary, who knows how to update API docs and has worked with IndexedDB Set owner to mcam...@google.com. |
Added Library-IndexedDB label. |
Removed Type-Task, Area-Documentation, Docs-API labels. |
Removed this from the 1.6 milestone. |
Removed the owner. |
Removed Oldschool-Milestone-1.6 label. |
Not planned. I'm also unclear how to update docs for dart:html, as I think they are generated? |
I saw in the tests this little gem:
return transaction.objectStore(storeName).add(value).then((addedKey) {
key = addedKey;
}).then(() {
return transaction.completed;
}).then(() {
From https://code.google.com/p/dart/source/browse/trunk/dart/tests/html/indexeddb_5_test.dart
However, the docs for add() don't seem to hint that you can just get the key.
http://api.dartlang.org/docs/releases/latest/dart_indexed_db/ObjectStore.html#add
Can we update both the class level docs with an example or two, and the method docs to indicate what the Future actually completes with? That would be really helpful. Thanks!
The text was updated successfully, but these errors were encountered: