mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-10-30 05:40:55 +00:00
Doc update: signaled does not clear signal
signaled does not clear signal (doc update)
This commit is contained in:
parent
7bf4710f3f
commit
d06dbf332b
@ -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…
Reference in New Issue
Block a user