event_reader.web3worker

Documentation for eth_defi.event_reader.web3worker Python module.

Web3 thread pool worker helpers.

Functions

create_thread_pool_executor(factory[, ...])

Create a thread pool executor.

get_worker_web3()

Get the Web3 connection for the worker.

get_worker_web3()

Get the Web3 connection for the worker.

The connection was initialized when the worker thread was created.

Return type

web3.main.Web3

create_thread_pool_executor(factory, context=None, max_workers=16)

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