标签: rust rust-tokio
我有一个异步功能:
async fn get_user_id() -> i32 { // ... }
Tokio中是否有某种机制可以接受未来,阻塞直到执行完成并返回结果?