Add documentation to Signal::poll_wait(..).

This commit is contained in:
Bob McWhirter 2022-08-15 11:20:35 -04:00
parent 17b9eb5f86
commit b273128990

View File

@ -69,6 +69,7 @@ impl<T: Send> Signal<T> {
}) })
} }
/// Manually poll the Signal future.
pub fn poll_wait(&self, cx: &mut Context<'_>) -> Poll<T> { pub fn poll_wait(&self, cx: &mut Context<'_>) -> Poll<T> {
critical_section::with(|_| unsafe { critical_section::with(|_| unsafe {
let state = &mut *self.state.get(); let state = &mut *self.state.get();