You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let res = listener.listen(|u| {})ifletErr(e) = res {println!("An error occured: {}", e);}
The easy way to deal with errors is to put a loop around this. But ... what would be the suggested way to do it? For example, it would be nice to retry if a network error occurs but maybe it should fail for other errors.
The text was updated successfully, but these errors were encountered:
The examples in the repo end with something like:
The easy way to deal with errors is to put a loop around this. But ... what would be the suggested way to do it? For example, it would be nice to retry if a network error occurs but maybe it should fail for other errors.
The text was updated successfully, but these errors were encountered: