How to debug future object

fn main(){
    let z = ok();
    println!("{:?}",z);
}


async fn ok(){
    println!("{:?}","~`|•");
    
}



(Playground)

What do you want to to have printed out, exactly? You could do something like this I suppose, though IMO the Output type is the only arguably useful information... but generally you'll probably already know this too.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.