https://gitlab.com/tezos/tezos
Raw File
Tip revision: 6e9278cfd27f7198c768c1d94e6ade5c8c36b5f5 authored by Thomas Letan on 21 February 2024, 09:55:52 UTC
EVM Node: Add --devmode for `init from rollup node'
Tip revision: 6e9278c
README.md
# Workers
<!-- Summary line: One sentence about this component. -->

The workers library: an event-driven task management abstraction somewhat akin
to actors.

## API Documentation
<!--
- Link to the external API.
-->

The API documentation is available online:
<https://tezos.gitlab.io/api/odoc/_html/octez-libs/tezos_workers.html>


## Overview
<!--
- Describe the purpose of this component.
- Describe the interaction of the code in this directory with the other
  components. This includes dependencies on other components, for instance.
-->

The workers library provides local event loops so that different components of
the Octez software can be somewhat isolated. Each workers maintains its own
queue of tasks, which allows for more control over scheduling than with the
global Lwt scheduler.


## Implementation Details
<!--
- Describe the file structure and the location of the main components.
- Other relevant implementation details (e.g., global invariants,
  implementation design rationale, etc.).
- Testing specifics, build-system specifics, etc. as needed.
-->

The library is made of a single compilation unit (`worker.ml`/`worker.mli`). The
bulk of it consists of types and signatures declaration, with a single functor
using them.
back to top