We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7b40e04 + d59f05b commit 468953fCopy full SHA for 468953f
frb_rust/src/dart_fn/handler.rs
@@ -58,7 +58,14 @@ impl DartFnHandler {
58
let _ = panic::catch_unwind(move || {
59
let catch_unwind_result = panic::catch_unwind(move || {
60
if let Some(completer) = (self.completers.lock().unwrap()).remove(&call_id) {
61
- completer.send(message).unwrap();
+ if let Err(err) = completer.send(message) {
62
+ // We do not care about details of this warning
63
+ // frb-coverage:ignore-start
64
+ log_warn_or_println(&format!(
65
+ "Error in dart_fn_handle_output when sending message for call_id {call_id}: {err:?}"
66
+ ));
67
+ // frb-coverage:ignore-end
68
+ }
69
}
70
});
71
if let Err(err) = catch_unwind_result {
0 commit comments