Skip to content

Commit f2b5e27

Browse files
committed
spin less in mpsc::SyncSender::send
1 parent f2966d1 commit f2b5e27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sync/mpmc/array.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ impl<T> Channel<T> {
330330
if backoff.is_completed() {
331331
break;
332332
} else {
333-
backoff.snooze();
333+
backoff.spin();
334334
}
335335
}
336336

0 commit comments

Comments
 (0)