mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 14:53:03 +00:00
Update signal.rs
Allow `poll_wait` to be public so higher-order futures around Signal can be built.
This commit is contained in:
parent
f53367d8ba
commit
17b9eb5f86
@ -69,7 +69,7 @@ impl<T: Send> Signal<T> {
|
||||
})
|
||||
}
|
||||
|
||||
fn poll_wait(&self, cx: &mut Context<'_>) -> Poll<T> {
|
||||
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 New Issue
Block a user