// returns ready when the sink and the buffer are completely flushed.
returns ready when the sink and the buffer are completely flushed.
returns ready when the sink and the buffer are completely flushed .
fn poll(&mut self, cx: &mut Context) -> Poll<Result<(), S::Error>> {
		let polled = self.schedule_all(cx)?;
		match polled {
			Poll::Ready(()) => Sink::poll_flush(Pin::new(&mut self.inner), cx),
			Poll::Pending => {
				ready!(Sink::poll_flush(Pin::new(&mut self.inner), cx))?;
				Poll::Pending
			},
		}
	}
fn poll ( & mut self , cx : & mut Context ) -> Poll < Result < ( ) , S :: Error > > { let polled = self . schedule_all ( cx ) ? ; match polled { Poll :: Ready ( ( ) ) => Sink :: poll_flush ( Pin :: new ( & mut self . inner ) , cx ) , Poll :: Pending => { ready ! ( Sink poll_flush ( Pin new ( mut self inner ) cx ) ) ? ; Poll :: Pending } , } }
returns ready when the sink and the buffer are completely flushed.
returns ready when the sink and the buffer are completely flushed .
&mut self
cx
&mut Context