package tezos-workers

  1. Overview
  2. Docs

Lwt based local event loops with automated introspection

Worker group maker

type worker_name = {
  1. base : string;
  2. name : string;
}

An error returned when trying to communicate with a worker that has been closed.

type Tezos_base__TzPervasives.Error_monad.error +=
  1. | Closed of worker_name
module type T = sig ... end

Functor to build a group of workers. At that point, all the types are fixed and introspectable, but the actual parameters and event handlers can be tweaked for each individual worker.

module Make (Name : Worker_intf.NAME) (Event : Worker_intf.EVENT) (Request : Worker_intf.REQUEST) (Types : Worker_intf.TYPES) (Logger : Worker_intf.LOGGER with module Event = Event and type Request.view = Request.view) : T with module Name = Name and module Event = Event and module Request = Request and module Types = Types