Function cybergrape::component::run_component
source ยท pub fn run_component<C: Component + Send + 'static>(
component: Box<C>,
input: Receiver<<C as Component>::InData>,
output: Sender<<C as Component>::OutData>,
) -> JoinHandle<()>
Expand description
Runs the given Component on its own thread. On receiving data of type InData on the input channel, the Component converts them to data of type OutData and sends it to the output channel.