We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
StreamRead::cancel
1 parent ca55f12 commit 3db0056Copy full SHA for 3db0056
1 file changed
crates/guest-rust/src/rt/async_support/stream_support.rs
@@ -599,6 +599,6 @@ impl<'a, T> StreamRead<'a, T> {
599
/// Panics if the operation has already been completed via `Future::poll`,
600
/// or if this method is called twice.
601
pub fn cancel(self: Pin<&mut Self>) -> (StreamResult, Vec<T>) {
602
- todo!()
+ self.pin_project().cancel()
603
}
604
0 commit comments