Tezos_bees
module Hive : sig ... end
Hive is used to abstract and launch a pool of worker bees. A single hive should be used per process. Must be used within Event_loop.main_run
continuation.
module Task_worker : sig ... end
This module provides an easy-to-use generic worker in order to run computations in parallel. It uses a dedicated pool of domains that is shared amongst all components of the same process. Important: the task worker inherits the main event loop switch that is available when it is created. If this switch is terminated, it will result in an inoperative task worker.
module Worker : sig ... end
Implementation of workers, with an interface compatible with Octez_workers
. To parallelize efficiently, the handlers must use exclusively Eio
for their IOs and any asynchronous operation. As such, the worker can be started either with Lwt-compatible handlers or Eio handlers, and push_requests
requests are duplicated to either return an Lwt promise or an Eio promise.
module Worker_events : sig ... end