Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is a p(r)ollyfill for a fully-async object-storage API that's simpler than
removing many of the [performance hazards of `localStorage`](https://blog.mozilla.org/tglek/2012/02/22/psa-dom-local-storage-considered-harmful/).

The API is roughly mirrors the [ES6 Map type](http://tc39wiki.calculist.org/es6/map-set/), but all methods return
[`Future`](https://github.com/slightlyoff/DOMFuture/) instances to enable async
[`Promise`](https://github.com/slightlyoff/DOMFuture/) instances to enable async
operation.

To get started quickly, use one of the pre-built versions from the [`bin/`
Expand Down Expand Up @@ -77,7 +77,7 @@ storage.set("thinger", "othervalue").then(function() {
});
});

// Iteration is also async. The returned Future resolves when the passed
// Iteration is also async. The returned Promise resolves when the passed
// callback has been invoked for each item (or when one fails, in case of error)
var itemCount = 0;
storage.forEach(function(value, key) {
Expand All @@ -95,4 +95,4 @@ has been tested in stable-channel Chrome and Firefox as of Spring '13.

## License

Apache v2 License. See the [LICENSE file](https://github.com/slightlyoff/async-local-storage/blob/master/LICENSE).
Apache v2 License. See the [LICENSE file](https://github.com/slightlyoff/async-local-storage/blob/master/LICENSE).