Concepttokio::task::spawn_blocking
spawn_blocking
Tokio提供的API,用于将阻塞性同步代码隔离到专用线程池中执行,避免阻塞Tokio的异步worker线程和事件循环
Timeline (last 90 days)
Oct 20
Qdrant v1.19.2 uses tokio::task::spawn_blocking via PR #10617 to offload batch encoding from async worker threads to the blocking thread pool, resolving Tokio runtime starvation.
Unverified50%