linkk
About:
This crate provides a simple way to make a set of channels and criss-cross them. This pattern is useful for getting things that are hard to get talking to each other to communicate.
Conceptually, it can be thought of as making a bridge, and it can be used to send any type of data across the channels.
There's almost certainly a nicer way of doing this... but, I dunno what that is.
Installation
Add this to your Cargo.toml:
[]
= "0.1.2"
Usage:
Here is an example of how to use this crate:
use *;
setup_linkk!;
let = make_new_linkk;
// link2 receives from link1
link2.send.unwrap;
assert_eq!;
// link1 receives from link2
link1.tx.send.unwrap;
assert_eq!;