Closed austinjones closed 4 years ago
Add traits to generalize Sender & Receivers.
This makes applications with tons of channels much easier to change, and much easier to learn (senders go ?, receivers are Some).
It also smooths over the tokio err types that don't implement std::error::Error, and are really akward w/ anyhow.
It also allows 'impl Sender' in the arguments for a service Self::run_xyz function.
Add traits to generalize Sender & Receivers.
This makes applications with tons of channels much easier to change, and much easier to learn (senders go ?, receivers are Some).
It also smooths over the tokio err types that don't implement std::error::Error, and are really akward w/ anyhow.
It also allows 'impl Sender' in the arguments for a service Self::run_xyz function.