Skip to content

Conversation

@ajfranzoia
Copy link
Contributor

Implements timeout feature discussed in #1007.
Follows @aearly advice on using a wrapper around the asynchronous functions. I changed the function arguments' order to match setTimeout signature.
If there are any mistakes or things that need modification, just let me know.
I can add the readme info if this looks good.

@aearly
Copy link
Collaborator

aearly commented Mar 6, 2016

I'm still 💯 on this, but master has changed significantly. Can you re-do the work? It also would be nice if you added a mocha_test too.

@aearly aearly added the feature label Mar 6, 2016
@ajfranzoia
Copy link
Contributor Author

Sure, I'll redo this and add a mocha test as well 👍

@ajfranzoia ajfranzoia force-pushed the support-async-timeout branch from af292d7 to 0d87dd0 Compare March 7, 2016 03:57
@ajfranzoia
Copy link
Contributor Author

Re-did this to support the new master and added a mocha test. I did some refactoring as well to the original code to make it clearer.

aearly added a commit that referenced this pull request Mar 7, 2016
Support function timeout via async.timeout wrapper
@aearly aearly merged commit 4f61814 into caolan:master Mar 7, 2016
@aearly aearly added this to the 2.0 milestone Mar 7, 2016
@meetwudi
Copy link
Contributor

meetwudi commented Mar 8, 2016

This is a nice feature! Probably add some docs of it? :)

@ajfranzoia
Copy link
Contributor Author

Added docs via #1051.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants