refactor: Clean up cache priming cancellation handling

This commit is contained in:
Lukas Wirth 2025-04-29 10:40:06 +02:00
parent fe7b4f2ad9
commit 7d9b839f9c
7 changed files with 54 additions and 39 deletions

View file

@ -56,6 +56,8 @@ impl Builder {
Self { inner: self.inner.stack_size(size), ..self }
}
/// Whether dropping should detach the thread
/// instead of joining it.
#[must_use]
pub fn allow_leak(self, allow_leak: bool) -> Self {
Self { allow_leak, ..self }