Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensureAsync #769

Merged
merged 4 commits into from
May 26, 2015
Merged

ensureAsync #769

merged 4 commits into from
May 26, 2015

Conversation

aearly
Copy link
Collaborator

@aearly aearly commented May 25, 2015

Adds a new utility function for wrapping async functions. It ensures that the function always calls is callback on a later tick in the event loop. I'm also considering using this function internally to prevent stack overflows with synchronous iteration functions.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.25%) to 94.61% when pulling 7c7326b on ensure_async into f71193a on master.

@aearly
Copy link
Collaborator Author

aearly commented May 26, 2015

I feel like there's a better name for this function, but going to use ensureAsync for now.

aearly added a commit that referenced this pull request May 26, 2015
@aearly aearly merged commit 1b258fb into master May 26, 2015
@aearly aearly deleted the ensure_async branch May 26, 2015 16:27
@aearly aearly restored the ensure_async branch June 8, 2015 01:30
@megawac megawac deleted the ensure_async branch April 12, 2016 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants