Skip to content

Commit 2c60a0d

Browse files
committed
chore: Add a doc comment in write_silently
1 parent c95a4a6 commit 2c60a0d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/hooks/use_radio.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,10 @@ where
407407
}
408408
}
409409

410+
/// Modify the state silently, no component will be notified.
411+
///
412+
/// This is not recommended, the only intended usage for this is inside [RadioAsyncReducer].
413+
///
410414
pub fn write_silently(&mut self) -> RadioGuard<Value, Channel> {
411415
let value = self.antenna.peek().station.value.write_unchecked();
412416
RadioGuard {

0 commit comments

Comments
 (0)