Doc update: signaled does not clear signal

signaled does not clear signal (doc update)
This commit is contained in:
Noah Bliss 2024-03-20 03:19:01 +00:00 committed by GitHub
parent 7bf4710f3f
commit d06dbf332b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 { pub fn signaled(&self) -> bool {
self.state.lock(|cell| { self.state.lock(|cell| {
let state = cell.replace(State::None); let state = cell.replace(State::None);