Skip to content

Commit

Permalink
v0.0.1:
Browse files Browse the repository at this point in the history
+ 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
Show file tree
Hide file tree
Showing 10 changed files with 662 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .gitignore
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


3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "async"]
path = async
url = https://github.com/caolan/async
36 changes: 36 additions & 0 deletions .jshintrc
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
}
}
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- "0.10"
15 changes: 15 additions & 0 deletions README.MD
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
1 change: 1 addition & 0 deletions async
Submodule async added at 5f62a1
Loading

0 comments on commit 944d3c8

Please sign in to comment.