Check if a notification is pending and clear it. Returns `true` if there was a pending notification.
(&self)
| 53 | /// Check if a notification is pending and clear it. |
| 54 | /// Returns `true` if there was a pending notification. |
| 55 | pub fn take(&self) -> bool { |
| 56 | self.signaled.swap(false, Ordering::Acquire) |
| 57 | } |
| 58 | |
| 59 | /// Check if a notification is pending without clearing it. |
| 60 | pub fn is_signaled(&self) -> bool { |
no outgoing calls