Inbox
Bounded capacity channel.
The channel is a multi-producer, single-consumer (MPSC) bounded queue. It is designed to be used as inbox for actors, following the actor model.
Examples
Simple creation of a channel and sending a message over it.
use thread;
use RecvError;
// Create a new small channel.
let = new_small;
let sender_handle = spawn;
let receiver_handle = spawn;
sender_handle.join.unwrap;
receiver_handle.join.unwrap;
License
Licensed under the MIT license (LICENSE or https://opensource.org/licenses/MIT).
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.