[][src]Function my_iot::core::persistence::spawn

pub fn spawn(
    db: Arc<Mutex<Db>>,
    tx: &Sender<Message>
) -> Result<Sender<Message>, Error>

Spawn the persistence thread.