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:
bors[bot] 2022-08-15 15:47:11 +00:00 committed by GitHub
commit 5790985f9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {