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

please add example to use with event loop like libuv #154

Open
calvin2021y opened this issue Aug 3, 2024 · 4 comments
Open

please add example to use with event loop like libuv #154

calvin2021y opened this issue Aug 3, 2024 · 4 comments

Comments

@calvin2021y
Copy link

please add example to use with event loop like libuv

@wprzytula
Copy link
Collaborator

wprzytula commented Aug 5, 2024

Please be more specific. What kind of example?
At the API level, the driver is usable just like the original cpp-driver, so please refer to examples there.
cc @Lorak-mmk

@calvin2021y
Copy link
Author

calvin2021y commented Aug 5, 2024

Thanks for update.

the old cpp-driver, can be use with libuv event loop, so you can add logic into loop without block anythings.

I am not sure how cpp-rust-driver work that way.

@calvin2021y
Copy link
Author

I think a test case with non-block callback from libuv/libev/libevnet2 will be great

@wprzytula
Copy link
Collaborator

the old cpp-driver, can be use with libuv event loop, so you can add logic into loop without block anythings.

Please write here sample code that you mention, with libuv event loop running over cpp-driver.

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