Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/dabeaz/python-cookbook
/ example1.py
File
example1.py
src/12/how_to_create_a_thread_pool/example1.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
from
socket
import
AF_INET, SOCK_STREAM, socket
2
from
concurrent.futures
import
ThreadPoolExecutor
3
4
def
echo_client(sock, client_addr):
Callers
nothing calls this directly
Calls
1
echo_server
Function · 0.70
Tested by
no test coverage detected