# embassy-usage **Repository Path**: ZIP97/embassy-usage ## Basic Information - **Project Name**: embassy-usage - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-15 - **Last Updated**: 2024-06-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # embassy-usage 虽然 embassy 是嵌入式异步框架,但它可以通过标准库运行在主机系统。 这些例子仅出于学习目的而编写,版权归“苦瓜小仔”所有。 ```console # 例子 1:利用 raw::Executor 和 __pender 进行手动轮询 LOG=DEBUG cargo r --bin manual-poll # 例子 2:通过运行生产者和消费者两个任务来观察 SPSC cargo r -p zerocopy-channel # 例子 3:观察 SPSC 的背压 cargo r -p zerocopy-channel-backpressure # 例子 4:在非 embassy-executor 运行时,以非 'static 的方式使用 embassy_sync::zerocopy_channel::Channel; * cargo r -p zerocopy-channel-nonstatic ```