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

Consider adding async wrapper #31

Open
ecton opened this issue Jan 26, 2022 · 0 comments
Open

Consider adding async wrapper #31

ecton opened this issue Jan 26, 2022 · 0 comments

Comments

@ecton
Copy link
Member

ecton commented Jan 26, 2022

While we are trying to keep BonsaiDb lightweight, it might be interesting to explore creating a lightweight async wrapper. I'm not sure we'd use it within BonsaiDb, but if this wrapper also dealt with the lifetime issues transparently, it could be worth it to switch.

Lifetime issues: spawn_blocking requires 'static lifetimes for the closure being executed. Using something like cryo we can take borrowed arguments and temporary extend the lifetime to static.

Refs #30

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

1 participant