Skip to content

Commit 780c446

Browse files
committed
comment
1 parent ec2f316 commit 780c446

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ impl Index {
115115
///
116116
/// Only for long-running / expensive operations that would block the async runtime or its
117117
/// blocking workerpool.
118+
///
119+
/// The thread-name will help us better seeing where our CPU load is coming from.
120+
///
121+
/// Also, "look Ma, no 'static" because of thread::scope.
118122
async fn handle_in_thread<R, F>(f: F) -> Result<R>
119123
where
120124
F: FnOnce() -> Result<R> + Send,

0 commit comments

Comments
 (0)