simple-message-channels
Simple streamable state machine that implements a useful channel, message-type, message pattern.
A port of the JavaScript module simple-message-channels to Rust. Original module by mafintosh.
Examples
See examples/.
The following sends three messages, transforms them, and prints the results:
| |
This example would read messages from STDIN and echos them back to STDOUT:
async