Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 531 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 531 Bytes

One-shot channels written in rust

Q) What are channels?

Channels are a mean to transport a message across threads safely such that no unambiguos activity takes place.

Q) What are one-shot channel?

One-shot channels are channels only but are meant to be used only once for sending/receiving.

This is done for learning purpose only.

Usage

Channels::new();
channels.split();

The channels are purely thread safe because of the power of different memory ordering that rust provides by default.