hhstore / blog

My Tech Blog: about Mojo / Rust / Golang / Python / Kotlin / Flutter / VueJS / Blockchain etc.
https://github.com/hhstore/blog/issues
276 stars 22 forks source link

Rust: Pro #343

Open hhstore opened 2 years ago

hhstore commented 2 years ago

related:

hhstore commented 2 years ago

Rust 进阶部分:

Rust 硬核劝退篇:

image

Rust 标准库:

Rust 宏:

Rust 算法:

用 Rust 写 OS:

hhstore commented 2 years ago

Rust FAQ:

Rust Context?

tokio 等价概念:

use tokio::time::timeout;
use tokio::sync::oneshot;

use std::time::Duration;

let (tx, rx) = oneshot::channel();

// Wrap the future with a `Timeout` set to expire in 10 milliseconds.
if let Err(_) = timeout(Duration::from_millis(10), rx).await {
    println!("did not receive value within 10 ms");
}

搜索:

tokio-context

Rust App Global Context:

rocket:

hhstore commented 2 years ago

Rust 过程宏:

陈天视频讲解:

视频:

依赖库:

hhstore commented 2 years ago

1

hhstore commented 2 years ago

1

hhstore commented 2 years ago

1