/// The last result that we captured, for diffing
prev_list: List,
/// User's callback
cb: Box<dyn FnMut(Update) + 'static>,
}
/// The last result that we captured, for diffing
prev_list: List,
/// User's callback
cb: Box<dyn FnMut(Update) + 'static>,
}
// Trigger an initial update.
// This is allowed to race with true updates because it
// will always calculate a diff and discard no-ops.
// Trigger an initial update.
// This is allowed to race with true updates because it
// will always calculate a diff and discard no-ops.
// Then return the handle
Ok(WatchHandle { hnd, _state: state })
}
// Then return the handle
Ok(WatchHandle { hnd, _state: state })
}