Update signal.rs
Allow `poll_wait` to be public so higher-order futures around Signal can be built.
This commit is contained in:
		| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user