Skip to content

Commit 17e56a5

Browse files
committed
Add remark about is_terminated
we don't want to update tokio just yet
1 parent 2c0e602 commit 17e56a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/server.rs

+1
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ impl<T> Future for UnwrapToPending<T> {
455455
type Output = T;
456456

457457
fn poll(mut self: Pin<&mut Self>, cx: &mut task::Context<'_>) -> Poll<Self::Output> {
458+
// todo: use is_terminated from tokio 1.44 here to avoid the fused wrapper
458459
match Pin::new(&mut self.0).poll(cx) {
459460
Poll::Ready(Ok(x)) => Poll::Ready(x),
460461
Poll::Ready(Err(_)) => Poll::Pending,

0 commit comments

Comments
 (0)