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

Asyncify the APIs #14

Merged
merged 2 commits into from
Apr 14, 2023
Merged

Asyncify the APIs #14

merged 2 commits into from
Apr 14, 2023

Conversation

psarna
Copy link
Collaborator

@psarna psarna commented Apr 14, 2023

In order to prepare for #3, the APIs are made asynchronous. It also applies to tests and benches.

@psarna
Copy link
Collaborator Author

psarna commented Apr 14, 2023

fyi: clippy fails because it rightflully complains about keeping a mutex locked across await points. That will be addressed, I just need to figure out why cargo bench crashes with OOM for me, because I want to see if going async causes a substantial regression

In order to prepare for penberg#3, the APIs are made asynchronous.
It also applies to tests and benches.
With AsyncMutex, we can use different mutex mechanisms
in the database - e.g. tokio::sync::Mutex.
@penberg penberg merged commit af798e4 into penberg:main Apr 14, 2023
1 check passed
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.

None yet

2 participants