Skip to main content

start_heartbeat

Function start_heartbeat 

Source
pub fn start_heartbeat(
    client: Client,
    server: String,
    token: Option<String>,
    heartbeat_state: HeartbeatState,
    processing: Arc<Mutex<HashSet<String>>>,
    cognition_config: CognitionHeartbeatConfig,
) -> JoinHandle<()>
Expand description

Start the heartbeat background task Returns a JoinHandle that can be used to cancel the heartbeat