You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use futures::FutureExt;fnmain(){
futures::executor::block_on(async{let f = std::future::pending::<()>();let(remote, remote_handle) = f.remote_handle();// poll remote at least once
futures::future::select(remote, std::future::ready(())).await;
remote_handle.await});}
I think the panic happened because remote is not cancel-safe and remote_handle was polled after remote was dropped without complete on this line (passing remote by mutable reference works as you expect), but panic without a message is odd anyway.
The following code causes
Exited with status 101
.https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=d62babe3ab6856b94d7a95fffdb457e4
The expected behavior is pending infinity on
remote_handle.await
.The text was updated successfully, but these errors were encountered: