它也提供了 block_on 函數,讓我們可以在非 async 的程式區塊(尤其是 main 函數)中執行 Future 物件。 Cargo.toml. [dependencies]. futures = "0.3" ...
確定! 回上一頁