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

Rewrite cld to actually be async with a promise API #62

Merged
merged 2 commits into from
May 6, 2020

Conversation

implausible
Copy link
Contributor

It looks like it might be beneficial for electron-spellchecker for this library to have a true async API. See electron-userland/electron-spellchecker#170.

Since we were already using the node callback pattern, most users have been promisifying this call anyway. I've preserved the callback API so that it should not be a breaking change (unless someone depended on the implementation actually being synchronous).

@implausible implausible force-pushed the feature/actually-async branch from de058a7 to d9e55be Compare April 30, 2020 23:42
@dachev
Copy link
Owner

dachev commented May 3, 2020

@implausible this is looking great! Would you mind updating the README to emphasize modern syntax? I would change the Simple and Advanced examples and add a new section Legacy with a callback example.

@implausible
Copy link
Contributor Author

implausible commented May 5, 2020

@dachev Sure can. I have updated the documentation. Let me know if you have any additional requests!

@dachev dachev merged commit 5e22d2e into dachev:master May 6, 2020
@dachev
Copy link
Owner

dachev commented May 6, 2020

Beautiful! Thank you @implausible

@implausible implausible deleted the feature/actually-async branch May 6, 2020 22:54
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.

2 participants