<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          async-std異步的 Rust 標準庫

          聯(lián)合創(chuàng)作 · 2023-09-28 11:01

          async-std 是 Rust 標準庫的異步版本。

          入門

          首先在Cargo.toml添加如下內(nèi)容: 

          [dependencies]
          async-std = "0.99"

          或者使用 cargo add :

          $ cargo add async-std

          Hello world

          #![feature(async_await)]
          
          use async_std::task;
          
          fn main() {
              task::block_on(async {
                  println!("Hello, world!");
              })
          }
          
          瀏覽 22
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  性爱片一区二区在线观看 | 国产免费无码一区二区三区四区 | 香蕉啪啪网 | 欧美黄片一区 | 日本内射精品特黄 |