ilgda-ipc

Crates.ioilgda-ipc
lib.rsilgda-ipc
version0.2.1
sourcesrc
created_at2023-09-09 19:16:45.987523
updated_at2023-12-28 19:19:38.098616
descriptionIPC standard used for ilgda
homepage
repositoryhttps://github.com/NightMare-Vortex/ilgda-ipc
max_upload_size
id968306
size14,073
Vrtgs (Vrtgs)

documentation

README

ilgda-ipc

IPC standard used for ilgda

temp readme will fix soon™

Example

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")) }
    );
}
Commit count: 23

cargo fmt