Function cfrp::spawn_topology [] [src]

pub fn spawn_topology<F>(config: Config, f: F) -> TopologyHandle where
    F: FnOnce(&Builder), 

Construct a new topology and run it

f will be called with a Builder, which exposes methods for adding inputs & transformations to the topology

Example

use std::default::*;
use cfrp::*;

let handle = spawn_topology(Default::default(), |t| {
    t.value(0usize).add_to(t);
});