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

Api consistency between acquire and release #65

Closed
wants to merge 1 commit into from
Closed

Api consistency between acquire and release #65

wants to merge 1 commit into from

Conversation

tgriesser
Copy link

Makes the API between acquire and release a bit more consistent (both accepting callbacks), adding an optional callback for release, notifying the callback if it has been called multiple times for the same connection.

Adds an optional callback function for release, notifying
if release is called multiple times for the same connection.
@chrisspiegl
Copy link

This looks good and should be merged.

@sandfox
Copy link
Collaborator

sandfox commented Jun 20, 2014

One small thing, could you add the update jsdoc stuff for me.release and then I'll merge this is.

@sandfox
Copy link
Collaborator

sandfox commented Jun 20, 2014

Actually, I've just hacked about with this and thought about it a bit more and a callback feels wrong here because release behaviour is synchronous, so we could just return something like a boolean to indicate if the object was really released, true for was releases, false for not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants