Add documentation to Signal::poll_wait(..).
This commit is contained in:
parent
17b9eb5f86
commit
b273128990
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue