package conex

  1. Overview
  2. Docs

A team consists of a group of authors. Team members can dynamically join and leave.

type t = private {
  1. created : Conex_utils.Uint.t;
  2. counter : Conex_utils.Uint.t;
  3. wraps : Conex_utils.Uint.t;
  4. name : identifier;
  5. members : Conex_utils.S.t;
}

The record for a team: a header and a set of members.

pp is a pretty printer.

t ~counter ~wraps ~members created id is a constructor for a team.

val equal : t -> t -> bool

equal t t' is true if the set of members is equal and the name is equal.

val of_wire : Wire.t -> (t, string) result

of_wire w converts w to a team or error.

val wire : t -> Wire.t

wire t is the wire representation of t.

val add : t -> identifier -> t

add t id adds id to team.

val remove : t -> identifier -> t

remove t id removes id from team.

val prep : t -> t * bool

prep t prepares increments t.counter. Returns the carry bit as second component. Used after a batch of changes.