Skip to content

Commit

Permalink
Merge pull request #1 from tobert/patch-1
Browse files Browse the repository at this point in the history
Spelling fixes.
  • Loading branch information
megakorre committed Dec 30, 2011
2 parents c1adea9 + a049f01 commit 48367e8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions readme.markdown
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# promise

promise is a libary for doing async programing
and it helps you to write generic algoritm's agenst async code
promise is a libary for doing async programming
and it helps you to write generic algorithm's against async code
and gives you a way of doing error handling with the options to fix
the problems from abowe
the problems from above

examples:

Expand All @@ -25,18 +25,18 @@ simple implementation of a promise to read a file
};


a use of a generic algoritm like syncArray
a use of a generic algorithm like syncArray

var filePaths = ......; // some array of file paths
var files = ps.syncArray(map(filePaths, readFile));

joining together 2 promises executing in parrallel
joining together 2 promises executing in parallel

var res = asyncThing1().joinWith(asyncThing2(), function(a1, a2) {
return a1 + a2;
});

using the context feture to deside wheter to log some data
using the context feture to decide wheter to log some data

var fetchUserProfile = function(userId) {
return http.get("...some url?id=" + userId)
Expand Down

0 comments on commit 48367e8

Please sign in to comment.