Merge #903
903: Update signal.rs r=Dirbaio a=bobmcwhirter Allow `poll_wait` to be public so higher-order futures around Signal can be built. Co-authored-by: Bob McWhirter <bmcwhirt@redhat.com>
This commit is contained in:
commit
5790985f9f
1 changed files with 2 additions and 1 deletions
|
@ -69,7 +69,8 @@ impl<T: Send> Signal<T> {
|
|||
})
|
||||
}
|
||||
|
||||
fn poll_wait(&self, cx: &mut Context<'_>) -> Poll<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();
|
||||
match state {
|
||||
|
|
Loading…
Reference in a new issue