| Crates.io | ilgda-ipc |
| lib.rs | ilgda-ipc |
| version | 0.2.1 |
| created_at | 2023-09-09 19:16:45.987523+00 |
| updated_at | 2023-12-28 19:19:38.098616+00 |
| description | IPC standard used for ilgda |
| homepage | |
| repository | https://github.com/NightMare-Vortex/ilgda-ipc |
| max_upload_size | |
| id | 968306 |
| size | 14,073 |
IPC standard used for ilgda
temp readme will fix soon™
use tokio::join;
use ilgda_ipc::async_channels::{AsyncIpcReceiver, AsyncIpcSender};
#[tokio::main]
async fn main() {
let (tx, rx) = ipc_channel::ipc::channel().unwrap();
let mut tx = AsyncIpcSender::new(tx);
let mut rx = AsyncIpcReceiver::new(rx);
join!(
async { tx.send(u128::MAX).await.expect("failed to send data") },
async { assert_eq!(u128::MAX, rx.recv().await.expect("failed to receive")) }
);
}