mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-29 05:11:31 +00:00
Merge pull request #2714 from noahbliss/patch-1
Doc update: signaled does not clear signal
This commit is contained in:
commit
5477d57168
@ -125,7 +125,7 @@ where
|
||||
})
|
||||
}
|
||||
|
||||
/// non-blocking method to check whether this signal has been signaled.
|
||||
/// non-blocking method to check whether this signal has been signaled. This does not clear the signal.
|
||||
pub fn signaled(&self) -> bool {
|
||||
self.state.lock(|cell| {
|
||||
let state = cell.replace(State::None);
|
||||
|
Loading…
x
Reference in New Issue
Block a user