From eec232c3e6eb1e85ff4889953ce3431dd7533e1e Mon Sep 17 00:00:00 2001 From: jay817 Date: Fri, 20 Dec 2024 05:37:24 +0000 Subject: [PATCH] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 5346d1c..ca8e1ca 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,9 @@ ln -s $(pwd)/wiki/linux-bash/bash_aliases.sh ~/.bash_aliases source "$HOME/.${SHELL##*/}rc" ``` + +## ThreadPoolExecutor +```py +__import__('concurrent').futures.ThreadPoolExecutor().submit( + lambda x: (print(x * 2) or x ** 2 / 0), 3).result() +``` \ No newline at end of file