-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Implemented async.auto + listening to errors + listening to timeouts + trigger notifications of start and complete tasks + all async api is maintained + async tests are run + specific tests implemented for the new functionality
- Loading branch information
Joao Ribeiro
committed
Mar 15, 2015
1 parent
87af495
commit 944d3c8
Showing
10 changed files
with
662 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
### Node template | ||
# Logs | ||
logs | ||
*.log | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
node_modules | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "async"] | ||
path = async | ||
url = https://github.com/caolan/async |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"bitwise" : true, | ||
"browser": true, | ||
"camelcase": false, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"eqnull": false, | ||
"forin": true, | ||
"immed": true, | ||
"indent": 4, | ||
"latedef": true, | ||
"newcap": true, | ||
"noarg": true, | ||
"noempty": true, | ||
"nonew": true, | ||
"plusplus": false, | ||
"quotmark": true, | ||
"undef": true, | ||
"unused": true, | ||
"strict": true, | ||
"trailing": true, | ||
"maxparams": 4, | ||
"maxdepth": 2, | ||
"maxstatements": 6, | ||
"maxcomplexity": 2, | ||
"maxlen": 120, | ||
"node": true, | ||
"globals": { | ||
"Buffer": true, | ||
"process": true, | ||
"define" : true, | ||
"requirejs": true, | ||
"module": true, | ||
"require": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
language: node_js | ||
node_js: | ||
- "0.10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# saferAsync | ||
|
||
[Async](https://github.com/caolan/async) library is great but it can be quite hard to debug and figure out what's | ||
happening behind the scenes. saferAsync aims to solve this by wrapping the async library functions, providing: | ||
* error handling - [domains](https://nodejs.org/api/domain.html); | ||
* error if callback is called more than once | ||
* timeout for the callback calling - if the callback is not called within the timeout defined | ||
than the callback is manually called using | ||
```js | ||
callback(err) | ||
``` | ||
* notification of function start and callback calling - useful for monitoring and tracking how long a function is taking | ||
to complete | ||
|
||
WIP - check the tests for examples |
Oops, something went wrong.