def __init__(self, loop=None, workers=None,<EOL>mock_browser: bool = True, *args, **kwargs):
super().__init__(*args, **kwargs)<EOL>self.loop = loop or asyncio.get_event_loop()<EOL>self.thread_pool = ThreadPoolExecutor(max_workers=workers)<EOL>
Set or create an event loop and a thread pool.

            :param loop: Asyncio loop to use.
            :param workers: Amount of threads to use for executing async calls.
                If not pass it will default to the number of processors on the
                machine, multiplied by 5.