Skip to main content

spawn

Function spawn 

Source
pub fn spawn(
    broker: Arc<Broker>,
    config: Arc<ConfigState>,
    conn_name: String,
    panes: PaneSampler,
    stop: Arc<AtomicBool>,
) -> Result<JoinHandle<()>>
Expand description

Starts the sampling loop on a thread of its own. It runs until stop is set (within one interval), which only a test does.