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

Add kitsune-blocking crate #382

Merged
merged 1 commit into from
Oct 22, 2023
Merged

Add kitsune-blocking crate #382

merged 1 commit into from
Oct 22, 2023

Conversation

aumetra
Copy link
Member

@aumetra aumetra commented Oct 22, 2023

This PR adds the kitsune-blocking crate, an abstraction crate to spawn blocking work onto specialized threadpools.

This crate currently exposes three different threadpools:

  • crypto: A rayon threadpool intended for running cryptographic operations (password hashing, key generation, signatures, etc.)
  • cpu: A rayon threadpool intended for running general CPU-bound work (image compression, image conversion, etc.)
  • io: A wrapper around tokio::task::spawn_blocking intended to spawn blocking I/O work

Preparation for #368

@aumetra aumetra added this pull request to the merge queue Oct 22, 2023
Merged via the queue into main with commit ef7f6e9 Oct 22, 2023
7 checks passed
@aumetra aumetra deleted the aumetra/blocking-crate branch October 22, 2023 20:28
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.

1 participant