From 34ec8b6652886a04c222adf4392b5ec8f6ed6b83 Mon Sep 17 00:00:00 2001 From: jay817 Date: Fri, 20 Dec 2024 04:15:38 +0000 Subject: [PATCH] Add ThreadPoolExecture/README.md --- ThreadPoolExecture/README.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ThreadPoolExecture/README.md diff --git a/ThreadPoolExecture/README.md b/ThreadPoolExecture/README.md new file mode 100644 index 0000000..8e7180d --- /dev/null +++ b/ThreadPoolExecture/README.md @@ -0,0 +1,6 @@ +Exception catched + +```python +__import__('concurrent').futures.ThreadPoolExecutor().submit( + lambda x: (print(x * 2) or x ** 2 / 0), 3).result() +``` \ No newline at end of file