You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
addWordSync and removeWordSync return booleans (probably whether the operation was ok), but addWord and removeWord pass the operated on word to callback.
The text was updated successfully, but these errors were encountered:
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.
addWordSync
andremoveWordSync
returnboolean
s (probably whether the operation was ok), butaddWord
andremoveWord
pass the operated on word tocallback
.The text was updated successfully, but these errors were encountered: