Add documentation to Signal::poll_wait(..).
This commit is contained in:
parent
17b9eb5f86
commit
b273128990
@ -69,6 +69,7 @@ impl<T: Send> Signal<T> {
|
||||
})
|
||||
}
|
||||
|
||||
/// Manually poll the Signal future.
|
||||
pub fn poll_wait(&self, cx: &mut Context<'_>) -> Poll<T> {
|
||||
critical_section::with(|_| unsafe {
|
||||
let state = &mut *self.state.get();
|
||||
|
Loading…
Reference in New Issue
Block a user