Skip to content
New issue

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

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

Already on GitHub? # to your account

New function names for clarity #14

Merged
merged 4 commits into from
Mar 18, 2018
Merged

New function names for clarity #14

merged 4 commits into from
Mar 18, 2018

Conversation

OlliV
Copy link
Collaborator

@OlliV OlliV commented Mar 11, 2018

The function names v() and p() in this library were
accidentally reversed from the tradition. Since the function names
might be a bit confusing even if named correctly, we should rename
them as acquire() and release() but also provide the old names
for backwards compatibility.

Fixes #13

The function names `v()` and `p()` in this library were
accidentally reversed from the tradition. Since the function names
might be a bit confusing even if named correctly, we should rename
them as `acquire()` and `release()` but also provide the old names
for backwards compatibility.

Fixes #13
@OlliV OlliV requested a review from TooTallNate March 11, 2018 22:06
@OlliV OlliV requested a review from leo March 13, 2018 11:47
index.d.ts Outdated

v(): Promise<string>;

acquire(token?: string): void;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems incorrect @OlliV
should it not be acquire(): Promise<string>?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's correct, thanks.

Copy link
Member

@TooTallNate TooTallNate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@leo leo merged commit 601b0db into master Mar 18, 2018
@leo leo deleted the new-names branch March 18, 2018 21:20
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants