Skip to content

Commit 8c50e7f

Browse files
committed
clarify comment on future pinning in wait_for_future function
1 parent ea3673b commit 8c50e7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ where
7474
let mut interval =
7575
tokio::time::interval(Duration::from_millis(SIGNAL_CHECK_INTERVAL_MS));
7676

77-
// Pin the future to the stack
77+
// tokio::pin!(f) ensures we can select! between the future
78+
// and interval.tick() without moving f.
7879
tokio::pin!(f);
7980

8081
loop {

0 commit comments

Comments
 (0)