pub async fn updater_events() -> Result<impl Stream<Item = Result<UpdateStatus, String>>, Error>
Expand description
Listen to an updater event.
The returned Future will automatically clean up it’s underlying event listener when dropped, so no manual unlisten function needs to be called. See Differences to the JavaScript API for details.
§Example
use tauri_sys::updater::updater_events;
use web_sys::console;
let events = updater_events();
while let Some(event) = events.next().await {
console::log_1(&format!("Updater event {:?}", event).into());
}