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

Async example errors #20

Open
dalvador2 opened this issue Jan 3, 2025 · 2 comments
Open

Async example errors #20

dalvador2 opened this issue Jan 3, 2025 · 2 comments

Comments

@dalvador2
Copy link

Hi. When running the code for the async example there seems to be an error using await for the new function. I have the async feature enabled and therefore wonder if there is an issue with this example code?

@eldruin
Copy link
Owner

eldruin commented Jan 4, 2025

Indeed. The new() method is not async.
Do you see any other error after removing .await from the call?

@dalvador2
Copy link
Author

No that works fine. It is just that your example code includes the .await for the new call. Updating this to not have this would be helpful for new users. Thanks for the excellent module.

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