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

Difference in return of value of addWordSync and given value to addWord callback #44

Closed
wooorm opened this issue Sep 7, 2016 · 1 comment

Comments

@wooorm
Copy link
Collaborator

wooorm commented Sep 7, 2016

addWordSync and removeWordSync return booleans (probably whether the operation was ok), but addWord and removeWord pass the operated on word to callback.

@Wulf Wulf mentioned this issue Jan 23, 2017
19 tasks
@nathanjsweet
Copy link
Collaborator

The reason this is done, is because it is presumed that if you are calling the method synchronously you have access to whatever word it is that you added or removed, whereas if you are doing it asynchronously you may not know what word was added/removed if you are using a general purpose function and adding/removing words quite rapidly.

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

No branches or pull requests

2 participants