clap-and-async-test

Crates.ioclap-and-async-test
lib.rsclap-and-async-test
version0.1.2
sourcesrc
created_at2021-10-22 16:11:58.892818
updated_at2021-10-25 15:27:36.694667
descriptionIs a example to use clap with tokio and futures, how run concurrently some functions with a loop inside
homepage
repository
max_upload_size
id469430
size32,889
David Pineda (dpineiden)

documentation

README

Clap Test

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 second level of implementation

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.

Commit count: 0

cargo fmt