From fd0215a3a01afca3d208d68610a52f99f9cb130a Mon Sep 17 00:00:00 2001 From: Stefan Kreutz Date: Wed, 20 Mar 2024 22:06:33 +0100 Subject: Ignore disconnected channel errors --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index f71965b..3373ed8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -233,7 +233,7 @@ where panic_tx.send(()).ok(); // avoid nested panic }); for (i, item) in in_rx.into_iter() { - out_tx.send((i, (f)(item))).unwrap(); + out_tx.send((i, (f)(item))).ok(); // fails iff. ParallelMap was dropped } }); } -- cgit v1.2.3