Crates.io | clap-and-async-test |
lib.rs | clap-and-async-test |
version | 0.1.2 |
source | src |
created_at | 2021-10-22 16:11:58.892818 |
updated_at | 2021-10-25 15:27:36.694667 |
description | Is a example to use clap with tokio and futures, how run concurrently some functions with a loop inside |
homepage | |
repository | |
max_upload_size | |
id | 469430 |
size | 32,889 |
Is a functional example that tests how to use 'clap' crate combined with async functions.
The async function uses tokio and futures. Raise inside two async loops and works concurrently.
Is a working and basic example combining some kind of interface layer.
A corroutine generate an object that will be sended by a 'broadcast channel' and on the other corroutine the value is received as is created. (If send a String then receive a String). Internally is not necessary to serialize the object to send to the other function.