safer-async

0.0.7 • Public • Published

saferAsync

Build Status

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;
  • 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
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

Readme

Keywords

Package Sidebar

Install

npm i safer-async

Weekly Downloads

3

Version

0.0.7

License

none

Last publish

Collaborators

  • jribeiro