chore(revert): add tokio runtime with custom thread naming (#18670)

This commit is contained in:
YK
2025-09-24 18:52:51 +08:00
committed by GitHub
parent 70fdd2248e
commit a80f0c83a3
4 changed files with 5 additions and 36 deletions

View File

@@ -73,7 +73,7 @@ impl BlockingTaskPool {
/// If a different stack size or other parameters are needed, they can be configured via
/// [`rayon::ThreadPoolBuilder`] returned by [`Self::builder`].
pub fn build() -> Result<Self, rayon::ThreadPoolBuildError> {
Self::builder().thread_name(|i| format!("rayon-{i}")).build().map(Self::new)
Self::builder().build().map(Self::new)
}
/// Asynchronous wrapper around Rayon's