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 { |         critical_section::with(|_| unsafe { | ||||||
|             let state = &mut *self.state.get(); |             let state = &mut *self.state.get(); | ||||||
|             match state { |             match state { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user