create_thread_pool_executor

Documentation for eth_defi.event_reader.web3worker.create_thread_pool_executor function.

create_thread_pool_executor(factory, context=None, max_workers=16)[source]

Create a thread pool executor.

All pool members have the thread locals initialized at start, so that there is Web3 connection available.

Parameters
Return type

futureproof.executors.ThreadPoolExecutor